diff options
Diffstat (limited to 'templates/restart/vpn/node.def.in')
-rw-r--r-- | templates/restart/vpn/node.def.in | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/restart/vpn/node.def.in b/templates/restart/vpn/node.def.in new file mode 100644 index 0000000..3e3566a --- /dev/null +++ b/templates/restart/vpn/node.def.in @@ -0,0 +1,12 @@ +help: Restart IPsec VPN +run: if [ -n "$(cli-shell-api returnActiveValues \ + vpn ipsec ipsec-interfaces interface)" ]; then + if pgrep pluto > /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 |