cronie: switch to OpenRC; bump revision.
--HG-- extra : convert_revision : 9cac319b7dc3801120b54228cbeda3a755b42b0f
This commit is contained in:
parent
8b045bed29
commit
7217f85369
|
@ -0,0 +1,20 @@
|
|||
#
|
||||
# This script registers the crond service into the
|
||||
# 'default' runlevel, as required by OpenRC.
|
||||
#
|
||||
|
||||
case "${ACTION}" in
|
||||
pre)
|
||||
;;
|
||||
post)
|
||||
[ ! -x sbin/rc-update ] && exit 0
|
||||
[ ! -x sbin/rc-service ] && exit 0
|
||||
|
||||
if sbin/rc-service -e udev; then
|
||||
echo "Registering ${PKGNAME} OpenRC service..."
|
||||
sbin/rc-update add crond default
|
||||
[ $? -ne 0 ] && exit $?
|
||||
sbin/rc-update -u
|
||||
fi
|
||||
;;
|
||||
esac
|
|
@ -0,0 +1,20 @@
|
|||
#
|
||||
# This script unregisters the crond service from the
|
||||
# 'default' runlevel, as required by OpenRC.
|
||||
#
|
||||
|
||||
case "${ACTION}" in
|
||||
pre)
|
||||
[ ! -x sbin/rc-update ] && exit 0
|
||||
[ ! -x sbin/rc-service ] && exit 0
|
||||
|
||||
if sbin/rc-service -e udev; then
|
||||
echo "Unregistering ${PKGNAME} OpenRC service..."
|
||||
sbin/rc-update del crond default
|
||||
[ $? -ne 0 ] && exit $?
|
||||
sbin/rc-update -u
|
||||
fi
|
||||
;;
|
||||
post)
|
||||
;;
|
||||
esac
|
|
@ -1,16 +0,0 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
|
||||
# PROVIDE: crond
|
||||
# REQUIRE: LOGIN
|
||||
# KEYWORD: shutdown
|
||||
|
||||
$_rc_subr_loaded . /etc/rc.subr
|
||||
|
||||
name="crond"
|
||||
rcvar=$name
|
||||
command="/usr/sbin/${name}"
|
||||
pidfile="/var/run/${name}.pid"
|
||||
|
||||
load_rc_config $name
|
||||
run_rc_command "$1"
|
|
@ -0,0 +1,11 @@
|
|||
#!/sbin/runscript
|
||||
|
||||
command=/usr/sbin/crond
|
||||
pidfile=/var/run/crond.pid
|
||||
name="crond (Cron Daemon)"
|
||||
|
||||
depend()
|
||||
{
|
||||
need localmount
|
||||
after bootmisc
|
||||
}
|
|
@ -1,6 +1,7 @@
|
|||
# Template file for 'cronie'
|
||||
pkgname=cronie
|
||||
version=1.3
|
||||
revision=1
|
||||
distfiles="http://mmaslano.fedorapeople.org/cronie/cronie-$version.tar.gz"
|
||||
build_style=gnu_configure
|
||||
configure_args="--with-inotify --without-selinux --with-pam
|
||||
|
@ -29,7 +30,7 @@ post_install()
|
|||
install -d ${DESTDIR}/etc/cron.monthly
|
||||
install -d -m755 ${DESTDIR}/var/spool/cron
|
||||
|
||||
install -D -m755 ${FILESDIR}/crond ${DESTDIR}/etc/rc.d/crond
|
||||
install -D -m755 ${FILESDIR}/crond.rc ${DESTDIR}/etc/init.d/crond
|
||||
install -D -m644 ${FILESDIR}/crontab ${DESTDIR}/etc/crontab
|
||||
|
||||
# Add /etc/cron.deny empty, to allow all users.
|
||||
|
|
Loading…
Reference in New Issue