From 548ef12b4d629a6e087b522616468c3ef2621b03 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sun, 30 Sep 2012 14:09:57 +0000 Subject: Only run chkconfig --del when the initscript exists (mga#7611) --- del-service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.1