diff options
author | Colin Guthrie <colin@mageia.org> | 2012-09-30 14:09:57 +0000 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2012-09-30 14:09:57 +0000 |
commit | 548ef12b4d629a6e087b522616468c3ef2621b03 (patch) | |
tree | 85d344e53b3adc0a46d36f2fd8a83b071290cc52 /del-service | |
parent | 9d3f0ec5fab1631a6d3a6ef5ec09efa915a7ea73 (diff) | |
download | rpm-helper-548ef12b4d629a6e087b522616468c3ef2621b03.tar rpm-helper-548ef12b4d629a6e087b522616468c3ef2621b03.tar.gz rpm-helper-548ef12b4d629a6e087b522616468c3ef2621b03.tar.bz2 rpm-helper-548ef12b4d629a6e087b522616468c3ef2621b03.tar.xz rpm-helper-548ef12b4d629a6e087b522616468c3ef2621b03.zip |
Only run chkconfig --del when the initscript exists (mga#7611)
Diffstat (limited to 'del-service')
-rwxr-xr-x | del-service | 2 |
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 |