[Unit] Description=gunicorn daemon for {{supysonic_name}} After=network.target {{ 'postgresql.service' if supysonic_DB_type == 'postgres' else mysqld.service }} [Service] PIDFile=/run/{{supysonic_name}}.pid User={{exec_user}} Group={{exec_group}} WorkingDirectory=/var/{{supysonic_name}} ExecStart={{venv_location}}{{supysonic_venv_name}}/bin/supysonic-server -p 8001 --threads 4 ExecReload=/bin/kill -s HUP $MAINPID ExecStop=/bin/kill -s TERM $MAINPID PrivateTmp=true [Install] WantedBy=multi-user.target