| 1 | #!/sbin/openrc-run |
| 2 | |
| 3 | name="haproxy-dataplaneapi" |
| 4 | description="HAProxy Data Plane API" |
| 5 | |
| 6 | : ${command_user="root:root"} |
| 7 | |
| 8 | pidfile="/run/$RC_SVCNAME.pid" |
| 9 | command="/usr/bin/dataplaneapi" |
| 10 | command_args="-f $CONFIGFILE" |
| 11 | command_background="yes" |
| 12 | |
| 13 | depend() { |
| 14 | need net |
| 15 | after firewall |
| 16 | } |
| 17 | |
| 18 | start_pre() { |
| 19 | checkpath -d --owner "$command_user" --mode 0755 \ |
| 20 | /var/log/dataplaneapi |
| 21 | } |