summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/snac.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/snac.service b/examples/snac.service
new file mode 100644
index 0000000..399c1f8
--- /dev/null
+++ b/examples/snac.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=snac daemon
+
+[Service]
+Type=simple
+Restart=always
+RestartSec=5
+ExecStart=/usr/local/bin/snac httpd /PATH/TO/SNAC/BASEDIR
+
+[Install]
+WantedBy=default.target
+
+# This is a systemd user service example. Edit and run:
+#
+# cp snac.service ~/.config/systemd/user/
+# systemctl --user enable snac.service
+# systemctl --user start snac.service