rpe 9a8b5ccd06 Change the shebang line from /bin/sh to /bin/ksh in all ports rc.d
daemon scripts and bump subpackages that contain the *.rc scripts.

discussed with and OK aja@
OK tb
2018-01-11 19:27:01 +00:00

18 lines
347 B
Bash

#!/bin/ksh
#
# $OpenBSD: haproxy.rc,v 1.4 2018/01/11 19:27:05 rpe Exp $
daemon="${TRUEPREFIX}/sbin/haproxy"
daemon_flags="-f ${HAPROXYCONF}/haproxy.cfg"
. /etc/rc.d/rc.subr
# rc_reload() appends '-sf ...'
pexp="${daemon}${daemon_flags:+ ${daemon_flags}}.*"
rc_reload() {
${daemon} ${daemon_flags} -sf $(cat /var/run/haproxy.pid)
}
rc_cmd $1