vpn-install/openvpn/checkserver.sh
2017-04-19 20:20:21 +03:00

8 lines
97 B
Bash
Executable File

#!/usr/bin/env bash
RET=$(pgrep openvpn)
if [ $? -eq 1 ]; then
/etc/init.d/openvpn restart
fi