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:
parent
fa4161a5dd
commit
37e039ef78
1 changed files with 4 additions and 2 deletions
|
@ -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 "$?"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue