diff --git a/conf/lutim.init b/conf/lutim.init index 9824559..3cc0782 100755 --- a/conf/lutim.init +++ b/conf/lutim.init @@ -17,6 +17,7 @@ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=script/lutim NAME=lutim DESC=lutim +LUTIM_DIR=__PATH__ if [ -f "/etc/default/lutim" ] then @@ -49,7 +50,7 @@ do_start() # 2 if daemon could not be started cd $LDIR - sudo -u www-data carton exec hypnotoad $DAEMON >/dev/null 2>&1 + carton exec hypnotoad $DAEMON >> $LUTIM_DIR/log/production.log 2>&1 return "$?" } @@ -62,7 +63,8 @@ do_stop() # other if a failure occurred cd $LDIR - carton exec hypnotoad -s $DAEMON >/dev/null 2>&1 + carton exec hypnotoad -s $DAEMON >> $LUTIM_DIR/log/production.log 2>&1 + return "$?" }