src.nth.io/

summaryrefslogtreecommitdiff
path: root/roles/pleroma/templates/pleroma.service.j2
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2018-08-16 20:25:56 -0500
committerLuke Hoersten <[email protected]>2018-08-16 20:25:56 -0500
commit608c3aa2dd6a35d8fe434d60822314cc23bd4314 (patch)
tree3c3656929b8d26c42eb901f7274e24c033fed99c /roles/pleroma/templates/pleroma.service.j2
Initial commit.
Diffstat (limited to 'roles/pleroma/templates/pleroma.service.j2')
-rw-r--r--roles/pleroma/templates/pleroma.service.j215
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/pleroma/templates/pleroma.service.j2 b/roles/pleroma/templates/pleroma.service.j2
new file mode 100644
index 0000000..ca6e662
--- /dev/null
+++ b/roles/pleroma/templates/pleroma.service.j2
@@ -0,0 +1,15 @@
+[Unit]
+Description=Pleroma social network
+After=network.target postgresql.service
+
+[Service]
+User={{pleroma_user}}
+WorkingDirectory=/home/{{pleroma_user}}/pleroma
+Environment="HOME=/home/{{pleroma_user}}"
+ExecStart=/usr/local/bin/mix phx.server
+ExecReload=/bin/kill $MAINPID
+KillMode=process
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target