dcron: switch to systemd, drop openrc support.
This commit is contained in:
parent
fa32a1c860
commit
62aaf952d7
|
@ -1,3 +0,0 @@
|
||||||
# Arguments passed to the cron daemon.
|
|
||||||
#
|
|
||||||
CROND_ARGS="-S -l info"
|
|
|
@ -1,10 +0,0 @@
|
||||||
#!/sbin/runscript
|
|
||||||
|
|
||||||
command=/usr/sbin/crond
|
|
||||||
command_args="${CROND_ARGS}"
|
|
||||||
|
|
||||||
depend()
|
|
||||||
{
|
|
||||||
need localmount
|
|
||||||
after bootmisc
|
|
||||||
}
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Periodic Command Scheduler
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
ExecStart=/usr/sbin/crond -f
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'dcron'
|
# Template file for 'dcron'
|
||||||
pkgname=dcron
|
pkgname=dcron
|
||||||
version=4.5
|
version=4.5
|
||||||
revision=1
|
revision=2
|
||||||
distfiles="http://www.jimpryor.net/linux/releases/dcron-${version}.tar.gz"
|
distfiles="http://www.jimpryor.net/linux/releases/dcron-${version}.tar.gz"
|
||||||
build_style=custom-install
|
build_style=custom-install
|
||||||
short_desc="Dillon's lightweight cron daemon"
|
short_desc="Dillon's lightweight cron daemon"
|
||||||
|
@ -18,8 +18,8 @@ long_desc="
|
||||||
|
|
||||||
keep_empty_dirs=yes
|
keep_empty_dirs=yes
|
||||||
replaces="cronie>=0"
|
replaces="cronie>=0"
|
||||||
openrc_services="crond default true"
|
systemd_services="dcron.service"
|
||||||
conf_files="/var/spool/cron/root /etc/conf.d/cron"
|
conf_files="/var/spool/cron/root"
|
||||||
provides="cron-daemon-0"
|
provides="cron-daemon-0"
|
||||||
replaces="cron-daemon>=0"
|
replaces="cron-daemon>=0"
|
||||||
|
|
||||||
|
@ -36,12 +36,11 @@ do_install()
|
||||||
make DESTDIR=${DESTDIR} install
|
make DESTDIR=${DESTDIR} install
|
||||||
|
|
||||||
install -d ${DESTDIR}/etc/cron.{hour,week,month}ly
|
install -d ${DESTDIR}/etc/cron.{hour,week,month}ly
|
||||||
install -D -m755 extra/run-cron ${DESTDIR}/usr/sbin/run-cron
|
install -Dm755 extra/run-cron ${DESTDIR}/usr/sbin/run-cron
|
||||||
install -D -m600 extra/root.crontab ${DESTDIR}/var/spool/cron/root
|
install -Dm600 extra/root.crontab ${DESTDIR}/var/spool/cron/root
|
||||||
install -D -m644 extra/crond.logrotate ${DESTDIR}/etc/logrotate.d/crond
|
install -Dm644 extra/crond.logrotate ${DESTDIR}/etc/logrotate.d/crond
|
||||||
|
|
||||||
install -D -m644 ${FILESDIR}/crond.confd ${DESTDIR}/etc/conf.d/crond
|
vinstall ${FILESDIR}/dcron.service 644 lib/systemd/system
|
||||||
install -D -m755 ${FILESDIR}/crond.init ${DESTDIR}/etc/init.d/crond
|
|
||||||
|
|
||||||
# crontab must be setuid for all users to work!
|
# crontab must be setuid for all users to work!
|
||||||
chmod 4755 ${DESTDIR}/usr/bin/crontab
|
chmod 4755 ${DESTDIR}/usr/bin/crontab
|
||||||
|
|
Loading…
Reference in New Issue