1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

iiab-remote-off: UX explaining OpenVPN's truly off

This commit is contained in:
A Holt 2022-08-11 12:02:44 -04:00 committed by GitHub
parent 83dc48ba7d
commit 3227cffe5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,9 @@ systemctl stop openvpn
sleep 5 sleep 5
ps -e | grep openvpn # 2018-09-05: "ps -e | grep vpn" no longer works (nor would "pgrep vpn") when invoked from iiab-vpn-off (as filename itself causes [multiple] "vpn" instances to appear in process list!) ps -e | grep openvpn # 2018-09-05: "ps -e | grep vpn" no longer works (nor would "pgrep vpn") when invoked from iiab-vpn-off (as filename itself causes [multiple] "vpn" instances to appear in process list!)
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
echo OpenVPN failed to stop. echo "OpenVPN failed to stop."
else else
echo Successfully stopped and disabled OpenVPN. echo "OpenVPN's systemd service was successfully stopped and disabled."
echo
echo "Also, 'openvpn_enabled: False' was set in /etc/iiab/local_vars.yml"
fi fi