16 lines
384 B
Django/Jinja
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
|