mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-08 09:54:43 +02:00
21 lines
369 B
Bash
Executable file
21 lines
369 B
Bash
Executable file
#!/sbin/openrc-run
|
|
|
|
name="haproxy-dataplaneapi"
|
|
description="HAProxy Data Plane API"
|
|
|
|
: ${command_user="root:root"}
|
|
|
|
pidfile="/run/$RC_SVCNAME.pid"
|
|
command="/usr/sbin/dataplaneapi"
|
|
command_args="-f $CONFIGFILE"
|
|
command_background="yes"
|
|
|
|
depend() {
|
|
need net
|
|
after firewall
|
|
}
|
|
|
|
start_pre() {
|
|
checkpath -d --owner "$command_user" --mode 0755 \
|
|
/var/log/dataplaneapi
|
|
}
|