pandora/etc/systemd/system/pandora.service
2016-09-10 10:23:48 +02:00

22 lines
536 B
Desktop File

[Unit]
Description=pandora daemon
After=postgresql.service rabbitmq-server.service
[Service]
Type=simple
Restart=always
User=pandora
Group=pandora
PIDFile=/run/pandora/pandora.pid
WorkingDirectory=/srv/pandora/pandora
StandardOutput=syslog
StandardError=syslog
ExecStartPre=/srv/pandora/pandora/manage.py compile_pyc -p /srv/pandora/pandora
ExecStart=/srv/pandora/bin/gunicorn \
wsgi:application \
-c gunicorn_config.py \
-p /run/pandora/pandora.pid
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target