fix gentoo OpenRC init script
This commit is contained in:
parent
d4be91c9f0
commit
a532066897
1 changed files with 6 additions and 3 deletions
|
|
@ -1018,18 +1018,21 @@ INSTANCE_NAME="Iptables for OpenVPN"
|
|||
|
||||
description="IPTables for OpenVPN"
|
||||
|
||||
depends() {
|
||||
need openvpn
|
||||
}
|
||||
|
||||
start() {
|
||||
ebegin "Starting $INSTANCE_NAME"
|
||||
ebegin "Starting ${SVCNAME}"
|
||||
/etc/iptables/add-openvpn-rules.sh
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
ebegin "Stopping $INSTANCE_NAME"
|
||||
ebegin "Stopping ${SVCNAME}"
|
||||
/etc/iptables/rm-openvpn-rules.sh
|
||||
eend $?
|
||||
}
|
||||
|
||||
ENDOFFILE
|
||||
|
||||
chmod +x /etc/init.d/iptables-openvpn
|
||||
|
|
|
|||
Loading…
Reference in a new issue