Skip to content

Commit

Permalink
Fixing logging to actually log in the init script.
Browse files Browse the repository at this point in the history
rubin110 committed May 5, 2014
1 parent 9f73337 commit ac8f4c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions initscript.sh
Original file line number Diff line number Diff line change
@@ -13,9 +13,9 @@ start() {
exit 1
else
## Change from /dev/null to something like /var/log/$PROG if you want to save output.
mv /var/log/$PROG.log.0 /var/log/$PROG.log.1 2>&1 > /dev/null
mv /var/log/$PROG.log /var/log/$PROG.log.0 2>&1 > /dev/null
$PROG_PATH/$PROG $PROG_ARGS > /var/log/$PROG.log 2>&1 > /dev/null &
mv /var/log/2pir.log.0 /var/log/2pir.log.1
mv /var/log/2pir.log /var/log/2pir.log.0
$PROG_PATH/$PROG $PROG_ARGS > /var/log/2pir.log &
echo "$PROG started"
touch "$PID_PATH/$PROG.pid"
fi

0 comments on commit ac8f4c4

Please sign in to comment.