ynh-vpnclient-checker.sh 153 B

1234567
  1. #!/bin/bash
  2. if [ ! -e /tmp/.ynh-vpnclient-stopped ] && ! ip link show tun0 &> /dev/null; then
  3. systemctl restart ynh-vpnclient &> /dev/null
  4. fi
  5. exit 0