In the handcrafted rc_* functions, use rc_exec to run commands so that we run
them in the proper routing domain. More rc.d scripts could probably benefit from this in ports and base but I am lazy.
This commit is contained in:
parent
a261cdce34
commit
43399fa2d6
@ -21,7 +21,7 @@ PKGNAME-python= py3-avahi-${V}
|
||||
REVISION-python= 4
|
||||
REVISION-gui= 6
|
||||
REVISION-gtk3= 3
|
||||
REVISION-main= 7
|
||||
REVISION-main= 8
|
||||
REVISION-libs= 2
|
||||
REVISION-glib= 1
|
||||
|
||||
|
@ -5,15 +5,15 @@ daemon="${TRUEPREFIX}/sbin/avahi-daemon -D"
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
rc_check() {
|
||||
${daemon} --check
|
||||
rc_exec "${daemon} --check"
|
||||
}
|
||||
|
||||
rc_reload() {
|
||||
${daemon} --reload
|
||||
rc_exec "${daemon} --reload"
|
||||
}
|
||||
|
||||
rc_stop() {
|
||||
${daemon} --kill
|
||||
rc_exec "${daemon} --kill"
|
||||
}
|
||||
|
||||
rc_cmd $1
|
||||
|
@ -5,15 +5,15 @@ daemon="${TRUEPREFIX}/sbin/avahi-dnsconfd -D"
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
rc_check() {
|
||||
${daemon} --check
|
||||
rc_exec "${daemon} --check"
|
||||
}
|
||||
|
||||
rc_reload() {
|
||||
${daemon} --refresh
|
||||
rc_exec "${daemon} --refresh"
|
||||
}
|
||||
|
||||
rc_stop() {
|
||||
${daemon} --kill
|
||||
rc_exec "${daemon} --kill"
|
||||
}
|
||||
|
||||
rc_cmd $1
|
||||
|
@ -6,6 +6,7 @@ COMMENT= network analysis and security monitoring framework
|
||||
|
||||
V= 5.0.0
|
||||
DISTNAME= zeek-${V}
|
||||
REVISION= 0
|
||||
|
||||
SHARED_LIBS += binpac 3.0
|
||||
SHARED_LIBS += broccoli 10.0
|
||||
|
@ -6,15 +6,15 @@ daemon_flags="start"
|
||||
. /etc/rc.d/rc.subr
|
||||
|
||||
rc_check() {
|
||||
${daemon} status
|
||||
rc_exec "${daemon} status"
|
||||
}
|
||||
|
||||
rc_reload() {
|
||||
${daemon} update
|
||||
rc_exec "${daemon} update"
|
||||
}
|
||||
|
||||
rc_stop() {
|
||||
${daemon} stop
|
||||
rc_exec "${daemon} stop"
|
||||
}
|
||||
|
||||
rc_cmd $1
|
||||
|
Loading…
Reference in New Issue
Block a user