The startup script for samba fails to check the subsys lock file on 
startup/shutdown.  The script incorrectly attempts to reload samba on 
runlevel change and incorrectly attempts to shutdown or restart when it is 
not running.

Patch follows to correct this behavior.


-- 
John P. Silva                            [EMAIL PROTECTED]

--- smb.orig	Mon Sep 10 07:25:42 2001
+++ smb	Sun Sep 16 14:27:27 2001
@@ -75,16 +75,16 @@
 
 case "$1" in
   start)
-  	start
+  	[ ! -f /var/lock/subsys/smb ] && start || :
 	;;
   stop)
-  	stop
+  	[ -f /var/lock/subsys/smb ] && stop || :
 	;;
   restart)
-  	restart
+  	[ -f /var/lock/subsys/smb ] && restart || :
 	;;
   reload)
-  	reload
+  	[ -f /var/lock/subsys/smb ] && reload || :
 	;;
   status)
   	mdkstatus

Reply via email to