First
[anni] / rel / files / installation / init.d / pleroma
1 #!/sbin/openrc-run
2
3 supervisor=supervise-daemon
4
5 # Requires OpenRC >= 0.35
6 directory=/opt/pleroma
7
8 command=/opt/pleroma/bin/pleroma
9 command_args="start"
10 command_user=pleroma
11 command_background=1
12
13 # Ask process to terminate within 30 seconds, otherwise kill it
14 retry="SIGTERM/30/SIGKILL/5"
15
16 pidfile="/var/run/pleroma.pid"
17
18 depend() {
19     want nginx
20     need postgresql
21 }