2022-06-14 10:41:25 -06:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
|
|
|
|
supervisor=supervise-daemon
|
|
|
|
|
|
|
|
# Requires OpenRC >= 0.35
|
2022-08-18 17:13:09 -06:00
|
|
|
directory=/opt/akkoma
|
2022-06-14 10:41:25 -06:00
|
|
|
|
2022-08-18 17:13:09 -06:00
|
|
|
command=/opt/akkoma/bin/pleroma
|
2022-06-14 10:41:25 -06:00
|
|
|
command_args="start"
|
2022-08-18 17:13:09 -06:00
|
|
|
command_user=akkoma
|
2022-06-14 10:41:25 -06:00
|
|
|
command_background=1
|
|
|
|
|
|
|
|
# Ask process to terminate within 30 seconds, otherwise kill it
|
|
|
|
retry="SIGTERM/30/SIGKILL/5"
|
|
|
|
|
2022-08-18 17:13:09 -06:00
|
|
|
pidfile="/var/run/akkoma.pid"
|
2022-06-14 10:41:25 -06:00
|
|
|
|
|
|
|
depend() {
|
|
|
|
want nginx
|
|
|
|
need postgresql
|
|
|
|
}
|