summaryrefslogtreecommitdiff
path: root/templates/restart
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2010-07-20 14:19:11 -0700
committerMohit Mehta <mohit.mehta@vyatta.com>2010-07-20 14:19:11 -0700
commitc5c104b94e2247c2a141f3756e7b2be991aea07e (patch)
treeb8441acdd42effbeb347ea08009c6d1072439243 /templates/restart
parent125b9cbc8cf38b5f8f8b26dce2dc6a010ee6d247 (diff)
downloadvyatta-op-vpn-c5c104b94e2247c2a141f3756e7b2be991aea07e.tar.gz
vyatta-op-vpn-c5c104b94e2247c2a141f3756e7b2be991aea07e.zip
part of fix for BZ 5839 - move clear process cmds under restart
Diffstat (limited to 'templates/restart')
-rw-r--r--templates/restart/vpn/node.def11
1 files changed, 11 insertions, 0 deletions
diff --git a/templates/restart/vpn/node.def b/templates/restart/vpn/node.def
new file mode 100644
index 0000000..1c9e4be
--- /dev/null
+++ b/templates/restart/vpn/node.def
@@ -0,0 +1,11 @@
+help: Restart IPsec VPN
+run: if [ -n "`ls $VYATTA_ACTIVE_CONFIGURATION_DIR/vpn/ipsec/ipsec-interfaces/interface 2>/dev/null`" ] ; 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 \ No newline at end of file