diff options
author | Guillaume Rousse <guillomovitch@mandriva.org> | 2006-08-31 11:38:41 +0000 |
---|---|---|
committer | Guillaume Rousse <guillomovitch@mandriva.org> | 2006-08-31 11:38:41 +0000 |
commit | 2e4321a18b751cf9e533a34163e14e93d05de4d3 (patch) | |
tree | cee4f21e9a79f7abf3e387a493e7aa156ffb2dda | |
parent | ca30c52808f81342100a36ebcd263a53d38418f4 (diff) | |
download | rpm-helper-2e4321a18b751cf9e533a34163e14e93d05de4d3.tar rpm-helper-2e4321a18b751cf9e533a34163e14e93d05de4d3.tar.gz rpm-helper-2e4321a18b751cf9e533a34163e14e93d05de4d3.tar.bz2 rpm-helper-2e4321a18b751cf9e533a34163e14e93d05de4d3.tar.xz rpm-helper-2e4321a18b751cf9e533a34163e14e93d05de4d3.zip |
test httpd service presence before using it, in case of simultaneous removal scenario (see bug #24188)
-rwxr-xr-x | del-webapp | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -9,9 +9,13 @@ pkg=$1 # name of the package num=$2 # number of packages installed if [ $num = 0 ]; then - # uninstallation: restart web server if running, - # a there is one less configuration file - /sbin/service httpd condrestart + # in simultaneous removal scenario, web server may + # already have been removed + if [ -f /etc/init.d/httpd ]; then + # uninstallation: restart web server if running, + # a there is one less configuration file + /sbin/service httpd condrestart + ] else # update: just reload web server if running, # as the number of configuration files didn't change |