bouncer/misc/packaging/openrc/bouncer-admin.openrc.sh

15 lines
371 B
Bash

#!/sbin/openrc-run
command="/usr/bin/bouncer"
command_args="--workdir /usr/share/bouncer --config /etc/bouncer/config.yml admin run"
supervisor=supervise-daemon
output_log="/var/log/bouncer/admin.log"
error_log="$output_log"
start_pre() {
/usr/bin/bouncer --workdir /usr/share/bouncer --config /etc/bouncer/config.yml database migrate
}
depend() {
need net
}