diff options
Diffstat (limited to 'main/openvpn/openvpn.up')
-rw-r--r-- | main/openvpn/openvpn.up | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/main/openvpn/openvpn.up b/main/openvpn/openvpn.up index 4a8868702d..2923bef7ac 100644 --- a/main/openvpn/openvpn.up +++ b/main/openvpn/openvpn.up @@ -61,19 +61,19 @@ if [ "${PEER_DNS}" != "no" ]; then fi # Below section is Gentoo specific -# Quick summary - our init scripts are re-entrant and set the SVCNAME env var +# Quick summary - our init scripts are re-entrant and set the RC_SVCNAME env var # as we could have >1 openvpn service -if [ -n "${SVCNAME}" ]; then +if [ -n "${RC_SVCNAME}" ]; then # If we have a service specific script, run this now - if [ -x /etc/openvpn/"${SVCNAME}"-up.sh ] ; then - /etc/openvpn/"${SVCNAME}"-up.sh "$@" + if [ -x /etc/openvpn/"${RC_SVCNAME}"-up.sh ] ; then + /etc/openvpn/"${RC_SVCNAME}"-up.sh "$@" fi # Re-enter the init script to start any dependant services - if ! /etc/init.d/"${SVCNAME}" --quiet status ; then + if ! /etc/init.d/"${RC_SVCNAME}" --quiet status ; then export IN_BACKGROUND=true - /etc/init.d/${SVCNAME} --quiet start + /etc/init.d/${RC_SVCNAME} --quiet start fi fi |