summaryrefslogtreecommitdiff
path: root/installation/pleroma.service
diff options
context:
space:
mode:
Diffstat (limited to 'installation/pleroma.service')
-rw-r--r--installation/pleroma.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/installation/pleroma.service b/installation/pleroma.service
new file mode 100644
index 000000000..fe314ed2b
--- /dev/null
+++ b/installation/pleroma.service
@@ -0,0 +1,16 @@
+[Unit]
+Description=Pleroma social network
+After=network.target postgresql.service
+
+[Service]
+User=pleroma
+WorkingDirectory=/home/pleroma/pleroma
+Environment="HOME=/home/pleroma"
+ExecStart=/usr/local/bin/mix phx.server
+ExecReload=/bin/kill $MAINPID
+KillMode=process
+Restart=on-failure
+
+[Install]
+WantedBy=multi-user.target
+Alias=pleroma.service