mirror of
https://github.com/YunoHost-Apps/pepettes_ynh.git
synced 2024-09-03 19:56:35 +02:00
Fixing PID
This commit is contained in:
parent
c35da86ffa
commit
19e5ca74ef
2 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@ pythonpath = '__FINALPATH__'
|
||||||
workers = 4
|
workers = 4
|
||||||
user = '__APP__'
|
user = '__APP__'
|
||||||
bind = 'unix:__FINALPATH__/sock'
|
bind = 'unix:__FINALPATH__/sock'
|
||||||
pid = '/run/gunicorn/__APP__-pid'
|
pid = '__FINALPATH__/__APP__-pid'
|
||||||
errorlog = '/var/log/__APP__/error.log'
|
errorlog = '/var/log/__APP__/error.log'
|
||||||
accesslog = '/var/log/__APP__/access.log'
|
accesslog = '/var/log/__APP__/access.log'
|
||||||
access_log_format = '%({X-Real-IP}i)s %({X-Forwarded-For}i)s %(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"'
|
access_log_format = '%({X-Real-IP}i)s %({X-Forwarded-For}i)s %(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s"'
|
||||||
|
|
|
@ -3,11 +3,11 @@ Description=__APP__ Daemon
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
PIDFile=/run/gunicorn/__APP__-pid
|
PIDFile=__FINALPATH__/__APP__-pid
|
||||||
User=__APP__
|
User=__APP__
|
||||||
Group=__APP__
|
Group=__APP__
|
||||||
WorkingDirectory=__FINALPATH__
|
WorkingDirectory=__FINALPATH__
|
||||||
ExecStart=__PYTHON_PATH__/gunicorn -c __FINALPATH__/gunicorn.py wsgi:app
|
ExecStart=__PYTHON_PATH__/gunicorn -c __FINALPATH__/gunicorn.py wsgi:app --pid __FINALPATH__/__APP__-pid
|
||||||
ExecReload=/bin/kill -s HUP $MAINPID
|
ExecReload=/bin/kill -s HUP $MAINPID
|
||||||
ExecStop=/bin/kill -s TERM $MAINPID
|
ExecStop=/bin/kill -s TERM $MAINPID
|
||||||
PrivateTmp=true
|
PrivateTmp=true
|
||||||
|
|
Loading…
Add table
Reference in a new issue