emissary/misc/packaging/openrc/emissary-server.openrc.sh

15 lines
387 B
Bash

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