From 92b3b71532e58f8ee69d2e3e006691bdd469ce76 Mon Sep 17 00:00:00 2001 From: default Date: Mon, 10 Jul 2023 06:05:43 +0200 Subject: [PATCH] [examples/snac-global.service] New file. --- examples/snac-global.service | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 examples/snac-global.service diff --git a/examples/snac-global.service b/examples/snac-global.service new file mode 100644 index 0000000..c5be9ad --- /dev/null +++ b/examples/snac-global.service @@ -0,0 +1,24 @@ +[Unit] +Description=A simple, minimalistic ActivityPub instance +Documentation=https://codeberg.org/grunfink/snac2/src/branch/master/doc +After=network.target +Wants=network-online.target + +[Service] +DynamicUser=yes +User=snac +Group=snac +StateDirectory=snac +ExecStart=/usr/local/bin/snac httpd $STATE_DIRECTORY +Restart=on-failure + +[Install] +WantedBy=multi-user.target + +# This is a systemd global service example. Edit and run: +# +# cp snac-global.service /etc/systemd/system/snac.service +# sudo snac init /var/lib/snac +# sudo snac adduser /var/lib/snac USER +# systemctl enable snac +# systemctl start snac