2014-10-10 14:16:54 +00:00
|
|
|
[Unit]
|
|
|
|
Description=pandora daemon
|
2016-09-07 07:00:48 +00:00
|
|
|
After=postgresql.service rabbitmq-server.service
|
2014-10-10 14:16:54 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
Restart=always
|
|
|
|
User=pandora
|
|
|
|
Group=pandora
|
|
|
|
PIDFile=/run/pandora/pandora.pid
|
|
|
|
WorkingDirectory=/srv/pandora/pandora
|
|
|
|
StandardOutput=syslog
|
|
|
|
StandardError=syslog
|
2016-02-19 19:09:07 +00:00
|
|
|
ExecStartPre=/srv/pandora/pandora/manage.py compile_pyc -p /srv/pandora/pandora
|
2016-03-08 07:48:35 +00:00
|
|
|
ExecStart=/srv/pandora/bin/gunicorn wsgi:application -c gunicorn_config.py -p /run/pandora/pandora.pid
|
2014-10-10 14:16:54 +00:00
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|