2019-06-22 04:24:33 -06:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
|
2019-06-24 01:08:33 -06:00
|
|
|
supervisor=supervise-daemon
|
|
|
|
|
2019-06-22 04:24:33 -06:00
|
|
|
# Requires OpenRC >= 0.35
|
|
|
|
directory=/opt/pleroma
|
|
|
|
|
|
|
|
command=/opt/pleroma/bin/pleroma
|
|
|
|
command_args="start"
|
|
|
|
command_user=pleroma
|
|
|
|
command_background=1
|
2023-06-13 04:45:18 -06:00
|
|
|
no_new_privs="yes"
|
2019-06-22 04:24:33 -06:00
|
|
|
|
|
|
|
# Ask process to terminate within 30 seconds, otherwise kill it
|
|
|
|
retry="SIGTERM/30/SIGKILL/5"
|
|
|
|
|
|
|
|
pidfile="/var/run/pleroma.pid"
|
|
|
|
|
|
|
|
depend() {
|
2019-06-24 01:08:33 -06:00
|
|
|
want nginx
|
|
|
|
need postgresql
|
2019-06-22 04:24:33 -06:00
|
|
|
}
|