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

15 lines
387 B
Bash
Raw Permalink Normal View History

2023-02-02 10:55:24 +01:00
#!/sbin/openrc-run
command="/usr/bin/emissary"
command_args="--workdir /usr/share/emissary --config /etc/emissary/server.yml server run"
2023-02-02 10:55:24 +01:00
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
}
2023-02-02 10:55:24 +01:00
depend() {
need net
}