On Sat, Jan 09, 2016 at 05:02:04PM +0100, Antoine Jacoutot wrote:
> On Sat, Jan 09, 2016 at 12:45:42PM +0100, Andreas Kusalananda Kähäri wrote:
> > Hi,
> >
> > When using rcctl to start a service that is not a true daemon, such
> > as anacron (from ports), and that service does its job and exits
> > immediately, then rcctl will wait for the allotted timeout to expire and
> > report failure:
> >
> > $ rcctl get anacron
> > anacron_class=daemon
> > anacron_flags=-s
> > anacron_timeout=30
> > anacron_user=root
> >
> > $ doas anacron -s -d
> > Anacron 2.4.3 started on 2016-01-09
> > Normal exit (0 jobs run)
> >
> > $ doas rcctl start anacron
> > anacron(failed)
> >
> > I'm not sure how to fix this. It doesn't break anything, but it delays
> > the boot process.
>
> rc.d is for daemons only.
> If anacron is just a standard utility that needs to be run at boot time then
> use rc.local or cron's @reboot facility.
>
Good suggestion. I'm already running it @hourly in root's crontab (I've
switched to running /etc/{daily,weekly,monthly} with anacron), and I
might just as well invoke it directly rather than through rcctl.
The port comes with an rcscript. I'm Cc'ing the port maintainer here
(giovanni@) so that he may decide whether that script should be removed
from the port. Also switching the mailing list from misc to ports.
Cheers,
--
Andreas Kusalananda Kähäri, Bioinformatics Developer, Uppsala, Sweden
OpenPGP: url=https://db.tt/2zaB1E7y; id=46082BDF
------------------------------------------------------------------------