Hi Antoine, Ill give that a try I'm just trying to work out what it does (pardon my ignorance)...
Thanks, Tom Smyth On Wed, 17 Feb 2021 at 17:57, Antoine Jacoutot <[email protected]> wrote: > > On Wed, Feb 17, 2021 at 04:37:00PM +0000, Tom Smyth wrote: > > Hello, > > > > I have noticed fastnetmon on OpenBSDamd64 can stop after a couple of > > weeks Im trying to get more info, > > but there doesnt seem to be anyhting in /var/log/daemon or /var/log/messages > > > > in an earlier release I had modified /etc/rc.d/fastnetmon (because of > > a directory that was not being created at start up (which has been > > since corrected by Stuart@ (thanks) but I think the mg created > > backup fastnetmon~ may have caused me issues then > > > > I noticed the following in insecurity > > that Services that should be running but aren't: > > /usr/sbin/rcctl: ${cached_svc_is_special_fastnetmon~}: bad substitution > > /usr/sbin/rcctl: set: cached_svc_is_special_fastnetmon~: is not an > > identifier > > /usr/sbin/rcctl: ${cached_svc_is_base_fastnetmon~}: bad substitution > > /usr/sbin/rcctl: set: cached_svc_is_base_fastnetmon~: is not an identifier > > /usr/sbin/rcctl: ${cached_svc_is_meta_fastnetmon~}: bad substitution > > /usr/sbin/rcctl: set: cached_svc_is_meta_fastnetmon~: is not an identifier > > > > im presuming this is because /etc/rc.d/fastnetmon~ backup file was > > in /etc/rc.d/fastnemon > > > > as anyone come across this issue before ? > > > > does anyone have an idea why the fastnetmon would suddenly stop > > working (the machine had plenty of ram, (perhaps newsyslog) ? > > anyway I have deleted /etc/rc.d/fastnetmon~ and we will take it from there > > > > Im running release + syspatch and have done a pkg_add -u > > Hi Tom. > > This doesn't really belong to ports but could you try this: > > > Index: rcctl.sh > =================================================================== > RCS file: /cvs/src/usr.sbin/rcctl/rcctl.sh,v > retrieving revision 1.108 > diff -u -p -r1.108 rcctl.sh > --- rcctl.sh 31 Mar 2020 08:03:44 -0000 1.108 > +++ rcctl.sh 17 Feb 2021 17:56:19 -0000 > @@ -54,7 +54,7 @@ ls_rcscripts() > > cd /etc/rc.d && set -- * > for _s; do > - [[ ${_s} = *.* ]] && continue > + [[ ${_s} == +([[:alnum:]_]) ]] || continue > [ ! -d "${_s}" ] && echo "${_s}" > done > } > > -- Kindest regards, Tom Smyth.
