67
|
1 |
# {{ansible_managed}} |
|
2 |
|
60
|
3 |
[Unit] |
|
4 |
Description=Pleroma social network |
|
5 |
After=network.target postgresql.service |
|
6 |
|
|
7 |
[Service] |
|
8 |
User={{pleroma_user}} |
|
9 |
WorkingDirectory=/home/{{pleroma_user}}/pleroma |
|
10 |
Environment="HOME=/home/{{pleroma_user}}" |
64
|
11 |
Environment="MIX_ENV=prod" |
69
|
12 |
Environment="PLUG_TMPDIR=/tmp/{{pleroma_user}}" |
74
|
13 |
ExecStart=/usr/bin/mix phx.server |
60
|
14 |
ExecReload=/bin/kill $MAINPID |
|
15 |
KillMode=process |
|
16 |
Restart=on-failure |
|
17 |
|
|
18 |
[Install] |
|
19 |
WantedBy=multi-user.target |