diff options
author | Gerald Carter <jerry@samba.org> | 2004-02-02 01:46:30 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2004-02-02 01:46:30 +0000 |
commit | a870ff546ce9128e3bf8bb3ddc88f5eeb98d2eda (patch) | |
tree | 9e2f27eb92aa97692268818a5d3ae4a921f53c13 /packaging/Fedora/smb.init | |
parent | 152e2282164069d63dde7b15f96d637db5a25245 (diff) | |
download | samba-a870ff546ce9128e3bf8bb3ddc88f5eeb98d2eda.tar.gz samba-a870ff546ce9128e3bf8bb3ddc88f5eeb98d2eda.tar.bz2 samba-a870ff546ce9128e3bf8bb3ddc88f5eeb98d2eda.zip |
janitor duty (merges from 3.0) and cleanup compiler warning on SuSE 9 in the end mapper code
(This used to be commit 902d4a647a88d1def09d5b1eacb06ab1561f3dec)
Diffstat (limited to 'packaging/Fedora/smb.init')
-rw-r--r-- | packaging/Fedora/smb.init | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/packaging/Fedora/smb.init b/packaging/Fedora/smb.init index fca823a064..11a011883f 100644 --- a/packaging/Fedora/smb.init +++ b/packaging/Fedora/smb.init @@ -60,14 +60,16 @@ start() { stop() { KIND="SMB" echo -n $"Shutting down $KIND services: " - killproc smbd + killproc smbd -TERM RETVAL=$? + [ $RETVAL -eq 0 ] && rm -f /var/run/smbd.pid echo KIND="NMB" echo -n $"Shutting down $KIND services: " - killproc nmbd + killproc nmbd -TERM RETVAL2=$? - [ $RETVAL -eq 0 -a $RETVAL2 -eq 0 ] && rm -f /var/lock/subsys/smb + [ $RETVAL2 -eq 0 ] && rm -f /var/run/nmbd.pid + [ $RETVAL -eq 0 -a $RETVAL2 -eq 0 ] && rm -f /var/lock/subsys/smb echo "" return $RETVAL } |