ab62d12294
--HG-- extra : convert_revision : 40b285acb49a2b5ebc1c89ef00ef78fd740aaaf7
20 lines
403 B
Text
20 lines
403 B
Text
#
|
|
# This script unregisters the metalog 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 ${PKGNAME}; then
|
|
echo "Unregistering ${PKGNAME} OpenRC service..."
|
|
sbin/rc-update del ${PKGNAME} default
|
|
[ $? -ne 0 ] && exit $?
|
|
sbin/rc-update -u
|
|
fi
|
|
;;
|
|
post)
|
|
;;
|
|
esac
|