From 9b754e8794a10d90998ba187ff2b2878e5b862d8 Mon Sep 17 00:00:00 2001 From: John W Kerns Date: Tue, 5 Sep 2017 12:01:31 -0700 Subject: [PATCH] README Updated --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0a50241..a0ff4c8 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,8 @@ Create Service (`vi /etc/init.d/checkmyip`) DAEMON_PATH="/bin/" DAEMON=checkmyip -#DAEMONOPTS="run" +STDOUTFILE=/etc/checkmyip/stdout.log +STDERR=/etc/checkmyip/stderr.log NAME=CheckMyIP DESC="CheckMyIP Daemon" @@ -83,7 +84,7 @@ case "$1" in start) printf "%-50s" "Starting $NAME..." cd $DAEMON_PATH - PID=`$DAEMON $DAEMONOPTS > /dev/null 2>&1 & echo $!` + PID=`stdbuf -o0 $DAEMON >> $STDOUTFILE 2>>$STDERR & echo $!` #echo "Saving PID" $PID " to " $PIDFILE if [ -z $PID ]; then printf "%s