diff --git a/src/packaging/RedHat/openafs-client.init b/src/packaging/RedHat/openafs-client.init index f07ff1662a..caaf89095b 100644 --- a/src/packaging/RedHat/openafs-client.init +++ b/src/packaging/RedHat/openafs-client.init @@ -53,8 +53,11 @@ stop() { RETVAL=$? echo if [ $RETVAL -eq 0 ] ; then - rm -f /var/lock/subsys/openafs-client rmmod openafs + RETVAL=$? + fi + if [ $RETVAL -eq 0 ] ; then + rm -f /var/lock/subsys/openafs-client fi return $RETVAL }