aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdel-service2
1 files changed, 1 insertions, 1 deletions
diff --git a/del-service b/del-service
index 82c2520..e23aa0f 100755
--- a/del-service
+++ b/del-service
@@ -78,7 +78,7 @@ if [ $num = 0 ]; then
fi
/bin/systemctl --no-reload --quiet disable $units >/dev/null
- [ -n "$srv" ] && /sbin/chkconfig --del $srv
+ [ -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