projects/aports·blob master · refs

21 lines · 514 B

1#!/sbin/openrc-run
2
3name="agate"
4command="/usr/bin/agate"
5command_user="agate:agate"
6command_background=true
7pidfile="/run/$RC_SVCNAME.pid"
8
9command_args="--content '$content_path' --certs '$certificate_path' --hostname '$hostname'"
10
11depend() {
12 need net localmount
13 after firewall
14}
15
16start_pre() {
17 checkpath -f "$output_log" -o "$command_user"
18 checkpath -f "$error_log" -o "$command_user"
19 checkpath -d "$content_path" -o "$command_user"
20 checkpath -d "$certificate_path" -o "$command_user"
21}