|
From: Chia-liang K. <cl...@cl...> - 2002-07-16 11:14:59
|
attached is the patch that makes the startup script works correctly on
freebsd. note that the pid of the running slashd is still wrong, and
you need to give the accoutn $USERNAME a valid shell.
RCS file: /cvsroot/slashcode/slash/utils/slash,v
retrieving revision 1.10
diff -u -r1.10 slash
--- slash 8 Jan 2002 17:22:10 -0000 1.10
+++ slash 7 Jul 2002 19:28:16 -0000
@@ -66,7 +66,8 @@
# if you aren't using GMT for internal dates, please change
# the appropriate lines, below.
if [ "$OS" = "FreeBSD" ] ; then
- su - $USERNAME "-c 'TZ=GMT $SLASHD $SERVER_NAME'" &
+ env TZ=GMT su $USERNAME -c "$SLASHD $SERVER_NAME" &
elif [ "$OS" = "Linux" ] ; then
su - $USERNAME -c "TZ=GMT $SLASHD $SERVER_NAME" &
else
Cheers,
CLK
|