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

13 lines
305 B
Text
Raw Normal View History

2017-05-27 18:09:50 +00:00
#!/bin/bash
2018-08-16 01:30:36 +00:00
# Not really used as of August 2018, but perhaps can be revived for CentOS etc
# If the wan has recently come up, see if we need to start openvpn
2017-05-27 18:09:50 +00:00
systemctl is-enabled openvpn
if [ $? -eq 0 ]; then
2018-08-15 18:15:19 +00:00
pgrep openvpn
if [ $? -ne 0 ]; then
systemctl start openvpn@xscenet
fi
2017-05-27 18:09:50 +00:00
fi