mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 16:06:42 +02:00
21 lines
514 B
Bash
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"
|
|
}
|