From 37e039ef7841fe4ca9d3b8c20c246605edba766d Mon Sep 17 00:00:00 2001 From: Maniack Crudelis Date: Mon, 16 Mar 2015 21:13:24 +0100 Subject: [PATCH] Update lutim.init --- conf/lutim.init | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 "$?" }