supysonic/templates/systemd/supysonic-server.service.j2

17 lines
511 B
Plaintext
Raw Permalink Normal View History

2019-05-13 17:00:10 +00:00
[Unit]
Description=gunicorn daemon for {{supysonic_name}}
2020-11-07 14:52:24 +00:00
After=network.target {{ 'postgresql.service' if supysonic_DB_type == 'postgres' else mysqld.service }}
2019-05-13 17:00:10 +00:00
[Service]
2021-11-14 10:32:06 +00:00
PIDFile=/run/{{supysonic_name}}.pid
2019-05-13 17:00:10 +00:00
User={{exec_user}}
Group={{exec_group}}
2021-11-14 10:32:06 +00:00
WorkingDirectory=/var/{{supysonic_name}}
ExecStart={{venv_location}}{{supysonic_venv_name}}/bin/supysonic-server -p 8001 --threads 4
2019-05-13 17:00:10 +00:00
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
PrivateTmp=true
2019-05-15 17:25:26 +00:00
[Install]
2019-05-16 15:10:03 +00:00
WantedBy=multi-user.target