From 1e2e1ddc47d706ce1ddd0ec12c3c7e031d269188 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 11 Nov 2022 15:15:25 -0800 Subject: nginx and systemd config examples --- extra/systemd_unit_example | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 extra/systemd_unit_example (limited to 'extra/systemd_unit_example') 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 -- cgit v1.2.3