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

15 lines
378 B
Bash

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