mirror of
https://github.com/YunoHost-Apps/mygpo_ynh.git
synced 2024-09-03 19:55:52 +02:00
fix systemd services
This commit is contained in:
parent
6bec1a4878
commit
454fd5e466
3 changed files with 6 additions and 6 deletions
|
@ -5,7 +5,7 @@ After=network.target postgresql.service redis.service __APP__.scoket
|
|||
[Service]
|
||||
User=__APP__
|
||||
Group=__APP__
|
||||
WorkingDirectory=__INSTALL_DIR__
|
||||
WorkingDirectory=__INSTALL_DIR__/source
|
||||
|
||||
ExecStart=__INSTALL_DIR__/venv/bin/envdir __INSTALL_DIR__/envs/prod __INSTALL_DIR__/venv/bin/celery -A __APP__ beat --pidfile /tmp/celerybeat.pid -S django
|
||||
ExecReload=/bin/kill -s HUP $MAINPID
|
||||
|
@ -15,4 +15,4 @@ TimeoutStopSec=5
|
|||
PrivateTmp=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
WantedBy=multi-user.target
|
||||
|
|
|
@ -5,7 +5,7 @@ After=network.target postgresql.service redis.service __APP__.socket
|
|||
[Service]
|
||||
User=__APP__
|
||||
Group=__APP__
|
||||
WorkingDirectory=__INSTALL_DIR__
|
||||
WorkingDirectory=__INSTALL_DIR__/source
|
||||
|
||||
ExecStart=__INSTALL_DIR__/venv/bin/envdir __INSTALL_DIR__/envs/prod __INSTALL_DIR__/venv/bin/celery -A __APP__ worker -l info -Ofair
|
||||
ExecReload=/bin/kill -s HUP $MAINPID
|
||||
|
@ -15,4 +15,4 @@ TimeoutStopSec=5
|
|||
PrivateTmp=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
WantedBy=multi-user.target
|
||||
|
|
|
@ -7,9 +7,9 @@ Requires=__APP__.socket
|
|||
Type=notify
|
||||
User=__APP__
|
||||
Group=__APP__
|
||||
WorkingDirectory=__INSTALL_DIR__/
|
||||
WorkingDirectory=__INSTALL_DIR__/source/
|
||||
|
||||
ExecStart=__INSTALL_DIR__/venv/bin/envdir __INSTALL_DIR__/envs/prod __INSTALL_DIR__/venv/bin/gunicorn -c __INSTALL_DIR__/conf/gunicorn.conf.py mygpo.wsgi:application --bind unix:/run/__APP__.sock
|
||||
ExecStart=__INSTALL_DIR__/venv/bin/envdir __INSTALL_DIR__/envs/prod __INSTALL_DIR__/venv/bin/gunicorn -c __INSTALL_DIR__/source/conf/gunicorn.conf.py mygpo.wsgi:application --bind unix:/run/__APP__.sock
|
||||
ExecReload=/bin/kill -s HUP $MAINPID
|
||||
Restart=on-failure
|
||||
KillMode=mixed
|
||||
|
|
Loading…
Reference in a new issue