aports/testing/agate/agate.initd
2023-05-02 15:07:49 +00:00

21 lines
514 B
Bash

#!/sbin/openrc-run
name="agate"
command="/usr/bin/agate"
command_user="agate:agate"
command_background=true
pidfile="/run/$RC_SVCNAME.pid"
command_args="--content '$content_path' --certs '$certificate_path' --hostname '$hostname'"
depend() {
need net localmount
after firewall
}
start_pre() {
checkpath -f "$output_log" -o "$command_user"
checkpath -f "$error_log" -o "$command_user"
checkpath -d "$content_path" -o "$command_user"
checkpath -d "$certificate_path" -o "$command_user"
}