akkoma/rel/files/installation/init.d/akkoma

22 lines
366 B
Text
Raw Normal View History

2022-06-14 10:41:25 -06:00
#!/sbin/openrc-run
supervisor=supervise-daemon
# Requires OpenRC >= 0.35
directory=/opt/akkoma
2022-06-14 10:41:25 -06:00
command=/opt/akkoma/bin/pleroma
2022-06-14 10:41:25 -06:00
command_args="start"
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"
pidfile="/var/run/akkoma.pid"
2022-06-14 10:41:25 -06:00
depend() {
want nginx
need postgresql
}