PREUN
/bin/sh
if [ $1 = 0 ]; then
service rdisc stop >/dev/null 2>&1
/sbin/chkconfig --del rdisc
/bin/systemctl disable rdisc.service > /dev/null 2>&1 || :
/bin/systemctl stop rdisc.service > /dev/null 2>&1 || :
fi
POSTIN
/bin/sh
/sbin/chkconfig --add rdisc
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
POSTUN
/bin/sh
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ "$1" -ge "1" ]; then
service rdisc status 2>&1 > /dev/null
if [ $? -eq 0 ]; then
service rdisc restart >/dev/null 2>&1 || :
fi
/bin/systemctl try-restart rdisc.service >/dev/null 2>&1 || :
fi