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

21 lines
391 B
Plaintext

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