Skip to content
This repository was archived by the owner on Jun 15, 2021. It is now read-only.

Commit 87eb8fc

Browse files
committed
stop following init as well
1 parent a0d884c commit 87eb8fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

root/etc/cont-init.d/40-openvpn-init

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ fi
1212
if [[ $(find /config/etc/db -type f | wc -l) -eq 0 || ! -f "/config/etc/as.conf" || (-f "/config/etc/as.conf" && $(grep "vpn.server.user=openvpn_as" /config/etc/as.conf)) ]]; then
1313
# shellcheck disable=SC2059
1414
printf "${CONFINPUT}" | /usr/local/openvpn_as/bin/ovpn-init
15+
echo "Stopping openvpn-as now; will start again later after configuring"
16+
kill `cat /var/run/openvpnas.pid`
1517
fi
1618

1719
chown -R abc:abc \

0 commit comments

Comments
 (0)