summaryrefslogtreecommitdiff
path: root/templates/restart/vrrp
diff options
context:
space:
mode:
authorMohit Mehta <mohit.mehta@vyatta.com>2010-07-20 14:20:45 -0700
committerMohit Mehta <mohit.mehta@vyatta.com>2010-07-20 14:20:45 -0700
commit6a27931ec222299cd3533a8a2298651e7ce643a7 (patch)
treed81e3985eb1aa5ad4ee21c5a0af75fe9e8d677ba /templates/restart/vrrp
parent24c341672200ad657fb6192c8f1b5c106933eb3a (diff)
downloadvyatta-op-6a27931ec222299cd3533a8a2298651e7ce643a7.tar.gz
vyatta-op-6a27931ec222299cd3533a8a2298651e7ce643a7.zip
part of fix for BZ 5839 - move clear process cmds under restart
Diffstat (limited to 'templates/restart/vrrp')
-rw-r--r--templates/restart/vrrp/node.def6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/restart/vrrp/node.def b/templates/restart/vrrp/node.def
new file mode 100644
index 0000000..a0629c7
--- /dev/null
+++ b/templates/restart/vrrp/node.def
@@ -0,0 +1,6 @@
+help: Restart VRRP
+run: if [ -e /etc/keepalived/keepalived.conf ] && [ -n "`grep vyatta /etc/keepalived/keepalived.conf `" ] ; then
+ sudo /opt/vyatta/bin/sudo-users/vyatta-clear-vrrp.pl --vrrp-action clear_process
+ else
+ echo VRRP not configured
+ fi \ No newline at end of file