1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00
iiab/roles/openvpn/templates/up_wan
2018-08-15 14:15:19 -04:00

9 lines
224 B
Bash
Executable file

#!/bin/bash
# if the wan has recently come up, see if we need to start openvpn
systemctl is-enabled openvpn
if [ $? -eq 0 ]; then
pgrep openvpn
if [ $? -ne 0 ]; then
systemctl start openvpn@xscenet
fi
fi