| 1 | #!/sbin/openrc-run |
| 2 | |
| 3 | name="agate" |
| 4 | command="/usr/bin/agate" |
| 5 | command_user="agate:agate" |
| 6 | command_background=true |
| 7 | pidfile="/run/$RC_SVCNAME.pid" |
| 8 | |
| 9 | command_args="--content '$content_path' --certs '$certificate_path' --hostname '$hostname'" |
| 10 | |
| 11 | depend() { |
| 12 | need net localmount |
| 13 | after firewall |
| 14 | } |
| 15 | |
| 16 | start_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 | } |