summaryrefslogtreecommitdiff
path: root/templates/restart/vpn/node.def
blob: 7cb93873fa020558ef7c49f096e7a7c98cd7ea67 (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 pluto > /dev/null
       then
        /opt/vyatta/bin/sudo-users/vyatta-vpn-op.pl --op=clear-vpn-ipsec-process
       else
         echo IPsec process not running
       fi
     else
        echo IPsec VPN not configured
     fi