projects
/
akkoma
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
9582d65d45c37c6d326bae49dc9a59b206d5f780
[akkoma]
/
init.d
/
pleroma
1
#!/sbin/openrc-run
2
3
# Requires OpenRC >= 0.35
4
directory=~pleroma/pleroma
5
6
command=/usr/bin/mix
7
command_args="phx.server"
8
command_user=pleroma:pleroma
9
command_background=1
10
11
export PORT=4000
12
export MIX_ENV=prod
13
14
# Ask process to terminate within 30 seconds, otherwise kill it
15
retry="SIGTERM/30 SIGKILL/5"
16
17
pidfile="/var/run/pleroma.pid"
18
19
depend() {
20
need nginx postgresql
21
}