use same folder structure in etc/systemd as used once installed
This commit is contained in:
parent
d7a9ca28cb
commit
cb6203ff82
7 changed files with 3 additions and 3 deletions
19
etc/systemd/system/pandora-cron.service
Normal file
19
etc/systemd/system/pandora-cron.service
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
[Unit]
|
||||
Description=pandora cron daemon
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
User=pandora
|
||||
Group=pandora
|
||||
PIDFile=/run/pandora/cron.pid
|
||||
WorkingDirectory=/srv/pandora/pandora
|
||||
StandardOutput=syslog
|
||||
StandardError=syslog
|
||||
ExecStart=/srv/pandora/bin/python /srv/pandora/pandora/manage.py \
|
||||
celerybeat -s /run/pandora/celerybeat-schedule \
|
||||
--pidfile /run/pandora/cron.pid \
|
||||
-l INFO
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
21
etc/systemd/system/pandora-encoding.service
Normal file
21
etc/systemd/system/pandora-encoding.service
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
[Unit]
|
||||
Description=pandora encoding daemon
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
User=pandora
|
||||
Group=pandora
|
||||
PIDFile=/run/pandora/encoding.pid
|
||||
WorkingDirectory=/srv/pandora/pandora
|
||||
StandardOutput=syslog
|
||||
StandardError=syslog
|
||||
ExecStart=/srv/pandora/bin/python /srv/pandora/pandora/manage.py \
|
||||
celeryd \
|
||||
-Q encoding -n pandora-encoding \
|
||||
--pidfile /run/pandora/encoding.pid \
|
||||
-l INFO
|
||||
ExecReload=/bin/kill -TERM $MAINPID
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
21
etc/systemd/system/pandora-tasks.service
Normal file
21
etc/systemd/system/pandora-tasks.service
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
[Unit]
|
||||
Description=pandora tasks daemon
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
User=pandora
|
||||
Group=pandora
|
||||
PIDFile=/run/pandora/tasks.pid
|
||||
WorkingDirectory=/srv/pandora/pandora
|
||||
StandardOutput=syslog
|
||||
StandardError=syslog
|
||||
ExecStart=/srv/pandora/bin/python /srv/pandora/pandora/manage.py \
|
||||
celeryd \
|
||||
-Q default,celery -n pandora-default \
|
||||
--pidfile /run/pandora/tasks.pid \
|
||||
-l INFO
|
||||
ExecReload=/bin/kill -TERM $MAINPID
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
18
etc/systemd/system/pandora-websocketd.service
Normal file
18
etc/systemd/system/pandora-websocketd.service
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
[Unit]
|
||||
Description=pandora websocket daemon
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
User=pandora
|
||||
Group=pandora
|
||||
PIDFile=/run/pandora/websocketd.pid
|
||||
WorkingDirectory=/srv/pandora/pandora
|
||||
StandardOutput=syslog
|
||||
StandardError=syslog
|
||||
ExecStart=/srv/pandora/bin/python /srv/pandora/pandora/manage.py websocketd \
|
||||
--pidfile /run/pandora/websocketd.pid
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
18
etc/systemd/system/pandora.service
Normal file
18
etc/systemd/system/pandora.service
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
[Unit]
|
||||
Description=pandora daemon
|
||||
|
||||
[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
|
||||
Loading…
Add table
Add a link
Reference in a new issue