[Slashdotjp-dev 926] [444] fix at keepalive

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 1月 20日 (日) 08:19:25 JST


Revision: 444
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=444
Author:   tach
Date:     2008-01-20 08:19:25 +0900 (Sun, 20 Jan 2008)

Log Message:
-----------
fix at keepalive

Modified Paths:
--------------
    slashjp/trunk/debian/slash-backend.init.d


-------------- next part --------------
Modified: slashjp/trunk/debian/slash-backend.init.d
===================================================================
--- slashjp/trunk/debian/slash-backend.init.d	2008-01-19 22:59:37 UTC (rev 443)
+++ slashjp/trunk/debian/slash-backend.init.d	2008-01-19 23:19:25 UTC (rev 444)
@@ -148,7 +148,8 @@
 			if [ ! -f $RUNNINGPID ] ;then
 				echo -n "Restarting $PROGNAME $VIRTUAL_USER_NAME, no PID file: ";
 				start_slashd;
-				echo "ok PID = $!";
+				sleep 3;
+				echo "ok PID = `cat ${RUNNINGPID}`";
 			else
 				# OK, this might not work on every platform since the "ps"
 				# is different on alot of OSes.
@@ -158,7 +159,8 @@
 					echo -n "Restarting $PROGNAME $VIRTUAL_USER_NAME, no valid PID file: ";
 					rm -f $RUNNINGPID;
 					start_slashd;
-					echo "ok PID = $!";
+					sleep 3;
+					echo "ok PID = `cat ${RUNNINGPID}`";
 				fi
 			fi
 		done


Slashdotjp-dev メーリングリストの案内
Back to archive index