supysonic/templates/systemd/supysonic-daemon.service.j2
2020-11-16 10:48:41 +01:00

16 lines
384 B
Django/Jinja

[Unit]
Description=Supysonic Daemon
After={{ 'postgresql.service' if supysonic_DB_type == 'postgres' else mysqld.service }}
After=network.target
[Service]
User=root
Restart=always
RestartSec=2s
Group=root
WorkingDirectory={{source_location}}/{{supysonic_name}}
ExecStart={{venv_location}}{{supysonic_venv_name}}/bin/python -m supysonic.daemon
[Install]
WantedBy=multi-user.target