diff options
author | Stig Thormodsrud <stig@vyatta.com> | 2008-05-26 13:50:33 -0700 |
---|---|---|
committer | Stig Thormodsrud <stig@vyatta.com> | 2008-05-26 13:50:33 -0700 |
commit | 5cc881e0cc7eccd422b1dce2980bb69e8fe0f709 (patch) | |
tree | 2638d272b028566db3242317fef2d2abd4283224 | |
parent | 7ed38a2c223dd3dbc96d72123eb267c7f4bf63db (diff) | |
download | vyatta-op-5cc881e0cc7eccd422b1dce2980bb69e8fe0f709.tar.gz vyatta-op-5cc881e0cc7eccd422b1dce2980bb69e8fe0f709.zip |
Fix 2705: Add "clear vrrp process" command.
-rw-r--r-- | templates/clear/vrrp/node.def | 1 | ||||
-rw-r--r-- | templates/clear/vrrp/process/node.def | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/templates/clear/vrrp/node.def b/templates/clear/vrrp/node.def new file mode 100644 index 0000000..fe0face --- /dev/null +++ b/templates/clear/vrrp/node.def @@ -0,0 +1 @@ +help: Clear VRRP diff --git a/templates/clear/vrrp/process/node.def b/templates/clear/vrrp/process/node.def new file mode 100644 index 0000000..f97cb91 --- /dev/null +++ b/templates/clear/vrrp/process/node.def @@ -0,0 +1,6 @@ +help: Restart the VRRP process +run: if [ -e /etc/keepalived/keepalived.conf ] && [ -n "`grep vyatta /etc/keepalived/keepalived.conf `" ] ; then + sudo /opt/vyatta/sbin/vyatta-keepalived.pl --vrrp-action clear + else + echo VRRP not configured + fi |