summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-07-10 06:05:43 +0200
committerdefault <nobody@localhost>2023-07-10 06:05:43 +0200
commit92b3b71532e58f8ee69d2e3e006691bdd469ce76 (patch)
treeee8cab690417b50a6562c6de21721bf44e2482b8 /examples
parentd2aa5727baf8b17f99d0ffc041b225463bd2684d (diff)
[examples/snac-global.service] New file.
Diffstat (limited to 'examples')
-rw-r--r--examples/snac-global.service24
1 files changed, 24 insertions, 0 deletions
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