src.nth.io/

summaryrefslogtreecommitdiff
path: root/writefreely/templates/writefreely.service.j2
diff options
context:
space:
mode:
Diffstat (limited to 'writefreely/templates/writefreely.service.j2')
-rw-r--r--writefreely/templates/writefreely.service.j211
1 files changed, 11 insertions, 0 deletions
diff --git a/writefreely/templates/writefreely.service.j2 b/writefreely/templates/writefreely.service.j2
new file mode 100644
index 0000000..0515872
--- /dev/null
+++ b/writefreely/templates/writefreely.service.j2
@@ -0,0 +1,11 @@
+[Unit]
+Description=WriteFreely %I Instance
+After=syslog.target network.target
+
+[Service]
+WorkingDirectory=/run/writefreely/%i
+ExecStart=/usr/local/bin/writefreely -c /etc/writefreely/%i.conf
+Restart=always
+
+[Install]
+WantedBy=multi-user.target