src.nth.io/

summaryrefslogtreecommitdiff
path: root/roles/writefreely/templates/writefreely.service.j2
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2020-02-09 11:59:05 -0600
committerLuke Hoersten <[email protected]>2020-02-09 11:59:05 -0600
commit195a4a3fcf65bf47ecb1a0ea2a9fb070c18eb20f (patch)
tree22ec1854302f609a69694e9c33eb71cbf94e21e2 /roles/writefreely/templates/writefreely.service.j2
parent785a8b2b45f0faf5e2578099bca1090c9c1417bb (diff)
Prometheus and WriteFreely roles are work in progress.
Diffstat (limited to 'roles/writefreely/templates/writefreely.service.j2')
-rw-r--r--roles/writefreely/templates/writefreely.service.j211
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/writefreely/templates/writefreely.service.j2 b/roles/writefreely/templates/writefreely.service.j2
new file mode 100644
index 0000000..0515872
--- /dev/null
+++ b/roles/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