summaryrefslogtreecommitdiff
path: root/templates/restart/vrrp/node.def
diff options
context:
space:
mode:
Diffstat (limited to 'templates/restart/vrrp/node.def')
-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