void-packages/templates/cronie/INSTALL
Juan RP a9b8499ac8 cronie: fix service name in INSTALL/REMOVE scripts.
--HG--
extra : convert_revision : 46f44f888ee03f7edd463dbdc7572431755f2f8d
2009-05-04 22:30:13 +02:00

20 lines
387 B
Text

#
# 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