aboutsummaryrefslogtreecommitdiffstats
path: root/del-service
diff options
context:
space:
mode:
Diffstat (limited to 'del-service')
-rwxr-xr-xdel-service4
1 files changed, 3 insertions, 1 deletions
diff --git a/del-service b/del-service
index 2d28963..388add9 100755
--- a/del-service
+++ b/del-service
@@ -94,7 +94,9 @@ if [ $num = 0 ]; then
fi
/bin/systemctl --no-reload --quiet disable $units >/dev/null 2>&1
- [ -n "$srv" -a -f /etc/rc.d/init.d/$srv ] && /sbin/chkconfig --del $srv
+ if [ -n "$srv" -a -f /etc/rc.d/init.d/$srv ]; then
+ /sbin/chkconfig --del $srv
+ fi
fi
# del-service ends here