summaryrefslogtreecommitdiff
path: root/packaging/Fedora/smb.init
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2004-01-16 17:46:38 +0000
committerGerald Carter <jerry@samba.org>2004-01-16 17:46:38 +0000
commitab9c2394194f2a81c0d990d3970e3a06940d4906 (patch)
treef69070afa251ea0c652469dec39206b043ed1fef /packaging/Fedora/smb.init
parent261fba09ef797f9985b84db49bdc7b3665bc0d93 (diff)
downloadsamba-ab9c2394194f2a81c0d990d3970e3a06940d4906.tar.gz
samba-ab9c2394194f2a81c0d990d3970e3a06940d4906.tar.bz2
samba-ab9c2394194f2a81c0d990d3970e3a06940d4906.zip
BUG 891 & 949: Fedora Packaging Fixes
(This used to be commit a7d0aec2b7ef132b5c631cb26d0a93dd66d0fff3)
Diffstat (limited to 'packaging/Fedora/smb.init')
-rw-r--r--packaging/Fedora/smb.init8
1 files changed, 5 insertions, 3 deletions
diff --git a/packaging/Fedora/smb.init b/packaging/Fedora/smb.init
index fca823a064..4182c13408 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
+ [ $RETVAL -eq 0 ] && rm -f /var/run/nmbd.pid
+ [ $RETVAL -eq 0 -a $RETVAL2 -eq 0 ] && rm -f /var/lock/subsys/smb
echo ""
return $RETVAL
}