summaryrefslogtreecommitdiff
path: root/support/openvpn/down.sh
diff options
context:
space:
mode:
Diffstat (limited to 'support/openvpn/down.sh')
-rwxr-xr-xsupport/openvpn/down.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/support/openvpn/down.sh b/support/openvpn/down.sh
index 4e74937..93dd53c 100755
--- a/support/openvpn/down.sh
+++ b/support/openvpn/down.sh
@@ -18,7 +18,8 @@ fi
# Re-enter the init script to stop any dependant services
if [ -x "${RC_SERVICE}" ]; then
if "${RC_SERVICE}" --quiet status; then
- export IN_BACKGROUND=YES
+ IN_BACKGROUND=YES
+ export IN_BACKGROUND
"${RC_SERVICE}" --quiet stop
fi
fi