vpn-install/pptp/checkserver.sh

8 lines
91 B
Bash
Executable File

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