vpn-install/openvpn/checkserver.sh

8 lines
110 B
Bash
Executable File

#!/usr/bin/env bash
RET=$(pgrep openvpn)
if [ $? -eq 1 ]; then
systemctl restart openvpn@openvpn-server
fi