anacron(8) is not a daemon, so there's no reason to have an rc.d script.
Instead use @reboot in root's crontab. ok giovanni@ (maintainer)
This commit is contained in:
parent
0cd9979b98
commit
0fbf046b58
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.15 2013/06/04 13:47:09 giovanni Exp $
|
||||
# $OpenBSD: Makefile,v 1.16 2016/01/11 06:59:48 ajacoutot Exp $
|
||||
|
||||
COMMENT= periodic command scheduler
|
||||
|
||||
@ -6,6 +6,7 @@ V= 2.5.3
|
||||
DISTNAME= anacron.$V
|
||||
PKGNAME= anacron-$V
|
||||
CATEGORIES= sysutils
|
||||
REVISION= 0
|
||||
|
||||
MAINTAINER= Giovanni Bechis <giovanni@openbsd.org>
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.6 2012/11/20 15:14:41 giovanni Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.7 2016/01/11 06:59:48 ajacoutot Exp $
|
||||
@extraunexec rm -fr /var/spool/anacron/*
|
||||
@man man/man5/anacrontab.5
|
||||
@man man/man8/anacron.8
|
||||
@ -9,4 +9,3 @@ share/doc/pkg-readmes/${FULLPKGNAME}
|
||||
@comment var/spool/
|
||||
@comment var/spool/anacron/
|
||||
@extra ${SYSCONFDIR}/anacrontab
|
||||
@rcscript ${RCDIR}/anacron
|
||||
|
@ -1,4 +1,4 @@
|
||||
$OpenBSD: README,v 1.2 2012/11/20 15:25:18 ajacoutot Exp $
|
||||
$OpenBSD: README,v 1.3 2016/01/11 06:59:48 ajacoutot Exp $
|
||||
|
||||
+-----------------------------------------------------------------------
|
||||
| Running ${FULLPKGNAME} on OpenBSD
|
||||
@ -26,3 +26,6 @@ Comment out the invocation of these jobs in root's crontab.
|
||||
|
||||
If your machine is left running for more than 24h at a time, you
|
||||
might also want to invoke anacron from an early morning cron job.
|
||||
|
||||
To run anacron(8) at boot time, add the following to root's crontab(5):
|
||||
@reboot ${PREFIX}/sbin/anacron -ds
|
||||
|
@ -1,12 +0,0 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: anacron.rc,v 1.1 2012/11/20 15:14:41 giovanni Exp $
|
||||
|
||||
daemon="${TRUEPREFIX}/sbin/anacron"
|
||||
daemon_flags="-s"
|
||||
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
rc_reload=NO
|
||||
|
||||
rc_cmd $1
|
Loading…
x
Reference in New Issue
Block a user