total rebase
[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 no_new_privs="yes"
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     want nginx
21     need postgresql
22 }