janitor duty (merges from 3.0) and cleanup compiler warning on SuSE 9 in the end...
[gd/samba/.git] / packaging / Fedora / smb.init
index fca823a06424c60c1754a133166c698ba798e19a..11a011883f93fa1a962cf9af6dc5e4d15fc8f768 100644 (file)
@@ -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
 }