diff options
Diffstat (limited to 'extra/systemd_unit_example')
-rw-r--r-- | extra/systemd_unit_example | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/extra/systemd_unit_example b/extra/systemd_unit_example new file mode 100644 index 0000000..63b261a --- /dev/null +++ b/extra/systemd_unit_example @@ -0,0 +1,19 @@ +[Unit] +Description=adenosine PDS +After=network.target +StartLimitBurst=20 +StartLimitInterval=30min + +[Service] +Type=simple +User=www-data +Group=www-data +# TODO: under /var/lib/adenosine/ instead? +WorkingDirectory=/srv/adenosine/ +EnvironmentFile=/srv/adenosine/config.env +ExecStart=/usr/bin/adenosine-pds serve -v +Restart=always +RestartSec=3sec + +[Install] +WantedBy=multi-user.target |