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.

-- 
Antoine

Reply via email to