vpnclient_ynh/conf/ynh-vpnclient-checker.sh
2016-08-15 13:22:39 +02:00

8 lines
158 B
Bash

#!/bin/bash
if [ ! -e /tmp/.ynh-vpnclient-stopped ] && ! ip route get 1.2.3.4 | grep -q tun0; then
systemctl restart ynh-vpnclient &> /dev/null
fi
exit 0