Fix: Linux init.d shell script

Poster Content
nk4um Moderator
Posts: 756
March 6, 2007 11:50Thanks!
Hi TJ - thanks for this suggestion.  We''ll add it for the 3.2 release in a month or so.

Pete
nk4um User
Posts: 13
March 6, 2007 11:43Fix: Linux init.d shell script
There''s a start-up logging bug in the bin/netkernel init shell script for Linux.

When starting the service the redirection of stdout and stderr is done as part of the executed command, which means the start-up output isn''t logged.

To fix, change from:
exec su - -p --shell=/bin/sh $NK_USER -c "$RUNCOMMAND &>\\"$LOGFILE\\"" 2>&1 &

to
exec su - -p --shell=/bin/sh $NK_USER -c "$RUNCOMMAND &>\\"$LOGFILE\\"" &>"$LOGFILE" &