diff options
-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 |