svnno****@sourc*****
svnno****@sourc*****
2008年 1月 17日 (木) 21:24:42 JST
Revision: 425 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=425 Author: tach Date: 2008-01-17 21:24:42 +0900 (Thu, 17 Jan 2008) Log Message: ----------- Add to set nice value for slashd Modified Paths: -------------- slashjp/trunk/debian/changelog slashjp/trunk/debian/slash-backend.init.d -------------- next part -------------- Modified: slashjp/trunk/debian/changelog =================================================================== --- slashjp/trunk/debian/changelog 2008-01-17 12:13:34 UTC (rev 424) +++ slashjp/trunk/debian/changelog 2008-01-17 12:24:42 UTC (rev 425) @@ -6,8 +6,9 @@ - Use of uninitialized value in numeric gt (>) at message_delivery.pl line 86. * Add logcheck ignore rules for slashd.log to slash-backend + * Add to set nice value for slashd - -- Taku YASUI <tach****@osdn*****> Thu, 17 Jan 2008 21:12:33 +0900 + -- Taku YASUI <tach****@osdn*****> Thu, 17 Jan 2008 21:24:00 +0900 slash (2.5.0.188-6) unstable; urgency=low Modified: slashjp/trunk/debian/slash-backend.init.d =================================================================== --- slashjp/trunk/debian/slash-backend.init.d 2008-01-17 12:13:34 UTC (rev 424) +++ slashjp/trunk/debian/slash-backend.init.d 2008-01-17 12:24:42 UTC (rev 425) @@ -19,6 +19,7 @@ DATADIR="/usr/share/slash"; SLASHD="$DATADIR/sbin/$PROGNAME"; SLASHSITE="$DATADIR/slash.sites"; +NICE=10 # To figure out where things are... TZ="GMT"; @@ -58,13 +59,13 @@ # the appropriate lines, below. But why wouldn't you? if [ "$MYSUDO" ] ; then - TZ=GMT $MYSUDO $SLASHD $VIRTUAL_USER_NAME & + TZ=GMT $MYSUDO nice -n $NICE $SLASHD $VIRTUAL_USER_NAME & elif [ "$OS" = "FreeBSD" ] ; then - TZ=GMT su $USERNAME -c "$SLASHD $VIRTUAL_USER_NAME" & + TZ=GMT su $USERNAME -c "nice -n $NICE $SLASHD $VIRTUAL_USER_NAME" & elif [ "$OS" = "Linux" ] ; then - su --shell="/bin/sh" - $USERNAME -c "TZ=GMT $SLASHD $VIRTUAL_USER_NAME" & + su --shell="/bin/sh" - $USERNAME -c "TZ=GMT nice -n $NICE $SLASHD $VIRTUAL_USER_NAME" & else - su - $USERNAME -c "TZ=GMT $SLASHD $VIRTUAL_USER_NAME" & + su - $USERNAME -c "TZ=GMT nice -n $NICE $SLASHD $VIRTUAL_USER_NAME" & fi }