SF.net SVN: gar:[25665] csw/mgar/pkg/samba/branches/samba3/files/cswsamba

lblume at users.sourceforge.net lblume at users.sourceforge.net
Sat Apr 16 14:27:55 CEST 2016


Revision: 25665
          http://sourceforge.net/p/gar/code/25665
Author:   lblume
Date:     2016-04-16 12:27:55 +0000 (Sat, 16 Apr 2016)
Log Message:
-----------
samba/branches/samba3: The init script should test pid files existence before using them

Modified Paths:
--------------
    csw/mgar/pkg/samba/branches/samba3/files/cswsamba

Modified: csw/mgar/pkg/samba/branches/samba3/files/cswsamba
===================================================================
--- csw/mgar/pkg/samba/branches/samba3/files/cswsamba	2016-04-16 10:26:44 UTC (rev 25664)
+++ csw/mgar/pkg/samba/branches/samba3/files/cswsamba	2016-04-16 12:27:55 UTC (rev 25665)
@@ -26,8 +26,8 @@
 	;;
 	stop)
 		echo "Stopping Samba..."
-		kill "`cat @SMBLOCKDIR@/smbd.pid`"
-		kill "`cat @SMBLOCKDIR@/nmbd.pid`"
+		[ -f @SMBLOCKDIR@/smbd.pid ] && kill "`cat @SMBLOCKDIR@/smbd.pid`"
+		[ -f @SMBLOCKDIR@/nmbd.pid ] && kill "`cat @SMBLOCKDIR@/nmbd.pid`"
 	;;
 	restart)
 		$0 stop

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list