aboutsummaryrefslogtreecommitdiffstats
path: root/extra/systemd_unit_example
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2022-11-11 15:15:25 -0800
committerBryan Newbold <bnewbold@robocracy.org>2022-11-11 15:15:25 -0800
commit1e2e1ddc47d706ce1ddd0ec12c3c7e031d269188 (patch)
tree4b670ece3a52dc3a5f02191ff5e6350f43a56890 /extra/systemd_unit_example
parent33368b57aa077ac13448f4d4927dd8a77934f763 (diff)
downloadadenosine-1e2e1ddc47d706ce1ddd0ec12c3c7e031d269188.tar.gz
adenosine-1e2e1ddc47d706ce1ddd0ec12c3c7e031d269188.zip
nginx and systemd config examples
Diffstat (limited to 'extra/systemd_unit_example')
-rw-r--r--extra/systemd_unit_example19
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