aboutsummaryrefslogtreecommitdiffstats
path: root/del-service
diff options
context:
space:
mode:
Diffstat (limited to 'del-service')
-rwxr-xr-xdel-service8
1 files changed, 0 insertions, 8 deletions
diff --git a/del-service b/del-service
index da61231..9f8adf4 100755
--- a/del-service
+++ b/del-service
@@ -95,14 +95,6 @@ if [ $num = 0 ]; then
/bin/systemctl --no-reload --quiet disable $units >/dev/null
[ -n "$srv" -a -f /etc/rc.d/init.d/$srv ] && /sbin/chkconfig --del $srv
-
- # Yes - this is very ugly workaround. chkconfig --del does daemon-reload,
- # but initscript is still there, so it remains loaded. Remove file and
- # reload again. Systemd units are supposed to provide postun script
- if [ -n "$srv" -a -f /etc/rc.d/init.d/$srv -a x$init = xsystemd ]; then
- /bin/rm -f /etc/rc.d/init.d/$srv
- /bin/systemctl daemon-reload
- fi
fi
# del-service ends here