mirror of
https://github.com/YunoHost-Apps/ffsync_ynh.git
synced 2024-09-03 18:26:38 +02:00
Update ffsync
This commit is contained in:
parent
de2ff0b4c2
commit
f670ef1fc0
1 changed files with 1 additions and 3 deletions
|
@ -26,12 +26,10 @@ lockfile=/var/run/sync.lock
|
||||||
conffile=${SYNC_HOME}/syncserver.ini
|
conffile=${SYNC_HOME}/syncserver.ini
|
||||||
GUNICORN=${SYNC_HOME}/local/bin/gunicorn
|
GUNICORN=${SYNC_HOME}/local/bin/gunicorn
|
||||||
GUNICORN_ARGS="--paste $conffile --access-logfile /var/log/ffsync.log --daemon -p $pidfile"
|
GUNICORN_ARGS="--paste $conffile --access-logfile /var/log/ffsync.log --daemon -p $pidfile"
|
||||||
#INVOCATION="$GUNICORN $GUNICORN_ARGS"
|
|
||||||
|
|
||||||
start () {
|
start () {
|
||||||
echo -n "Starting $prog"
|
echo -n "Starting $prog"
|
||||||
start-stop-daemon --start -c ffsync --exec /opt/yunohost/ffsync/local/bin/gunicorn_paster -- /opt/yunohost/ffsync/syncserver.ini --access-logfile /tmp/ffsync.log --daemon -p /tmp/sync.pid
|
start-stop-daemon --start -c ${SYNC_USER} --exec $GUNICORN -- $GUNICORN_ARGS
|
||||||
#start-stop-daemon --start -c ${SYNC_USER} --exec $GUNICORN -- $GUNICORN_ARGS $conffile
|
|
||||||
RETVAL=$?
|
RETVAL=$?
|
||||||
echo
|
echo
|
||||||
[ $RETVAL = 0 ] && touch ${lockfile}
|
[ $RETVAL = 0 ] && touch ${lockfile}
|
||||||
|
|
Loading…
Reference in a new issue