summaryrefslogtreecommitdiff
path: root/templates/restart/vpn/node.def.in
blob: 4366d19187193142356c5f6c5eaab02c2084f7d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
help: Restart IPsec VPN
run: if [ -n "$(cli-shell-api returnActiveValues \
                  vpn ipsec ipsec-interfaces interface)" ]; then
       if pgrep charon > /dev/null
       then
        @SUDOUSRDIR@/vyatta-vpn-op.pl --op=clear-vpn-ipsec-process
       else
         echo IPsec process not running
       fi
     else
        echo IPsec VPN not configured
     fi