uninstall_debian_easy : more systemd cleanup

This commit is contained in:
bolvan 2019-05-03 19:36:26 +03:00
parent 10270b9e96
commit f7e59d9eab

View File

@ -28,6 +28,7 @@ SYSTEMCTL=$(which systemctl)
echo \* stopping service and unregistering init script with LSB ... echo \* stopping service and unregistering init script with LSB ...
"$SYSTEMCTL" disable zapret
"$SYSTEMCTL" stop zapret "$SYSTEMCTL" stop zapret
[ -f "$INIT_SCRIPT" ] && "$LSB_REMOVE" $INIT_SCRIPT [ -f "$INIT_SCRIPT" ] && "$LSB_REMOVE" $INIT_SCRIPT
@ -62,5 +63,8 @@ if grep -q "$GET_IPLIST_PREFIX" $CRONTMP; then
fi fi
rm -f $CRONTMP rm -f $CRONTMP
exit 0 echo \* systemd cleanup ...
"$SYSTEMCTL" daemon-reload
exit 0