vpn-install/pptp/checkserver.sh
2017-04-19 21:09:16 +03:00

8 lines
93 B
Bash

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