mirror of
https://github.com/YunoHost-Apps/pyinventory_ynh.git
synced 2024-09-03 20:16:09 +02:00
18 lines
367 B
SYSTEMD
18 lines
367 B
SYSTEMD
|
[Unit]
|
||
|
Description=PyInventory application server
|
||
|
After=redis.service postgresql.service
|
||
|
|
||
|
[Service]
|
||
|
User=__APP__
|
||
|
Group=__APP__
|
||
|
WorkingDirectory=__FINALPATH__/
|
||
|
|
||
|
ExecStart=__FINALPATH__/virtualenv/bin/gunicorn --config __FINALPATH__/gunicorn.conf.py wsgi
|
||
|
|
||
|
StandardOutput=syslog
|
||
|
StandardError=syslog
|
||
|
SyslogIdentifier=__APP__-server
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|