diff options
-rw-r--r-- | NEWS | 1 | ||||
-rwxr-xr-x | del-service | 4 |
2 files changed, 4 insertions, 1 deletions
@@ -1,3 +1,4 @@ + * don't leak failure exit code when no sysvinit script exists * be quieter when disabling services on uninstall too 2014-10-09 Colin Guthrie <colin@mageia.org> 0.24.14 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 |