roles/pleroma/templates/pleroma.service.j2
author Luke Hoersten <luke@hoersten.org>
Sat, 19 Jan 2019 11:48:07 -0600
changeset 70 2cfe2fb975a8
parent 69 be979818d483
child 74 dc20ec78acdd
permissions -rw-r--r--
Added readme.

# {{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/local/bin/mix phx.server
ExecReload=/bin/kill $MAINPID
KillMode=process
Restart=on-failure

[Install]
WantedBy=multi-user.target