roles/pleroma/templates/pleroma.service.j2
author Luke Hoersten <luke@hoersten.org>
Sun, 17 Nov 2019 08:51:19 -0600
changeset 77 e5c97510c1c0
parent 74 dc20ec78acdd
child 78 18b6a82be777
permissions -rw-r--r--
Updated pleroma version from 1.0.6 to 1.1.5.

# {{ansible_managed}}

[Unit]
Description=Pleroma social network
After=network.target postgresql.service

[Service]
User={{pleroma_user}}
WorkingDirectory=/home/{{pleroma_user}}/pleroma
Environment="HOME=/home/{{pleroma_user}}"
Environment="MIX_ENV=prod"
Environment="PLUG_TMPDIR=/tmp/{{pleroma_user}}"
ExecStart=/usr/bin/mix phx.server
ExecReload=/bin/kill $MAINPID
KillMode=process
Restart=on-failure

[Install]
WantedBy=multi-user.target