roles/pleroma/templates/pleroma.service.j2
author Luke Hoersten <luke@hoersten.org>
Tue, 01 Jan 2019 21:57:11 -0600
changeset 67 bd34ae082697
parent 64 2b0d305daa43
child 69 be979818d483
permissions -rw-r--r--
Split out nginx sites.

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

[Install]
WantedBy=multi-user.target