1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/lutim_ynh.git synced 2024-09-03 19:36:24 +02:00

Update lutim.init

This commit is contained in:
Maniack Crudelis 2015-03-16 21:13:24 +01:00
parent fa4161a5dd
commit 37e039ef78

View file

@ -17,6 +17,7 @@ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=script/lutim DAEMON=script/lutim
NAME=lutim NAME=lutim
DESC=lutim DESC=lutim
LUTIM_DIR=__PATH__
if [ -f "/etc/default/lutim" ] if [ -f "/etc/default/lutim" ]
then then
@ -49,7 +50,7 @@ do_start()
# 2 if daemon could not be started # 2 if daemon could not be started
cd $LDIR 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 "$?" return "$?"
} }
@ -62,7 +63,8 @@ do_stop()
# other if a failure occurred # other if a failure occurred
cd $LDIR cd $LDIR
carton exec hypnotoad -s $DAEMON >/dev/null 2>&1 carton exec hypnotoad -s $DAEMON >> $LUTIM_DIR/log/production.log 2>&1
return "$?" return "$?"
} }