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

14 lines
178 B
Bash

#!/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