vpn-install/ipsec/checkserver.sh
2017-04-19 21:27:29 +03:00

14 lines
178 B
Bash
Executable File

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