svnno****@sourc*****
svnno****@sourc*****
2008年 6月 16日 (月) 19:53:14 JST
Revision: 662 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=662 Author: tach Date: 2008-06-16 19:53:14 +0900 (Mon, 16 Jun 2008) Log Message: ----------- * Add to killing orphaned slashd child process when keepalive Modified Paths: -------------- slashjp/branches/2.5.0.192/debian/changelog slashjp/branches/2.5.0.192/debian/slash-backend.init.d -------------- next part -------------- Modified: slashjp/branches/2.5.0.192/debian/changelog =================================================================== --- slashjp/branches/2.5.0.192/debian/changelog 2008-06-16 07:10:09 UTC (rev 661) +++ slashjp/branches/2.5.0.192/debian/changelog 2008-06-16 10:53:14 UTC (rev 662) @@ -23,8 +23,9 @@ - Check sid existance - Select enable/disable to add related comments using variable "related_cid_disabled" + * Add to killing orphaned slashd child process when keepalive - -- Taku YASUI <tach****@osdn*****> Mon, 16 Jun 2008 07:07:32 +0000 + -- Taku YASUI <tach****@osdn*****> Mon, 16 Jun 2008 10:52:31 +0000 slash (2.5.0.192-12) unstable; urgency=low Modified: slashjp/branches/2.5.0.192/debian/slash-backend.init.d =================================================================== --- slashjp/branches/2.5.0.192/debian/slash-backend.init.d 2008-06-16 07:10:09 UTC (rev 661) +++ slashjp/branches/2.5.0.192/debian/slash-backend.init.d 2008-06-16 10:53:14 UTC (rev 662) @@ -145,6 +145,18 @@ ;; keepalive) + # kill orphaned slashd child process + pids=`pidof -x slashd` + for pid in $pids; do + ppid=`egrep '^PPid:' /proc/$pid/status 2>/dev/null | awk '{print $2}'` + pname=`cat /proc/$pid/cmdline 2>/dev/null` + pcmd=`echo $pname | awk '{print $3}'` + test "$ppid" != "1" && continue + test -z "$pcmd" && continue + echo Orphaned slashd procces is found: $pid $ppid $pname + kill -USR1 $pid + done + for server_name in $GRAB_CONFIG; do break_parts; if [ ! -f $RUNNINGPID ] ;then