cronie: use $openrc_services and its trigger.
--HG-- extra : convert_revision : 0584571610555327007a3ff55c104be929972e1d
This commit is contained in:
parent
a5a1d6fe44
commit
0cdad3fd7d
3 changed files with 3 additions and 40 deletions
|
@ -1,20 +0,0 @@
|
|||
#
|
||||
# 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 crond; then
|
||||
echo "Registering ${PKGNAME} OpenRC service..."
|
||||
sbin/rc-update add crond default
|
||||
[ $? -ne 0 ] && exit $?
|
||||
sbin/rc-update -u
|
||||
fi
|
||||
;;
|
||||
esac
|
|
@ -1,20 +0,0 @@
|
|||
#
|
||||
# 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 crond; then
|
||||
echo "Unregistering ${PKGNAME} OpenRC service..."
|
||||
sbin/rc-update del crond default
|
||||
[ $? -ne 0 ] && exit $?
|
||||
sbin/rc-update -u
|
||||
fi
|
||||
;;
|
||||
post)
|
||||
;;
|
||||
esac
|
|
@ -16,10 +16,13 @@ long_desc="
|
|||
SELinux."
|
||||
|
||||
conf_files="/etc/crontab"
|
||||
openrc_services="crond default"
|
||||
triggers="openrc-service"
|
||||
|
||||
Add_dependency full glibc
|
||||
Add_dependency full pam
|
||||
Add_dependency full run-parts
|
||||
Add_dependency run OpenRC
|
||||
|
||||
post_install()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue