From 6a27931ec222299cd3533a8a2298651e7ce643a7 Mon Sep 17 00:00:00 2001 From: Mohit Mehta Date: Tue, 20 Jul 2010 14:20:45 -0700 Subject: part of fix for BZ 5839 - move clear process cmds under restart --- templates/clear/vrrp/process/node.def | 6 ------ templates/restart/node.def | 1 + templates/restart/vrrp/node.def | 6 ++++++ 3 files changed, 7 insertions(+), 6 deletions(-) delete mode 100644 templates/clear/vrrp/process/node.def create mode 100644 templates/restart/node.def create mode 100644 templates/restart/vrrp/node.def diff --git a/templates/clear/vrrp/process/node.def b/templates/clear/vrrp/process/node.def deleted file mode 100644 index cea635b..0000000 --- a/templates/clear/vrrp/process/node.def +++ /dev/null @@ -1,6 +0,0 @@ -help: Restart the VRRP process -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 diff --git a/templates/restart/node.def b/templates/restart/node.def new file mode 100644 index 0000000..f4a2fbe --- /dev/null +++ b/templates/restart/node.def @@ -0,0 +1 @@ +help: Restart a service \ No newline at end of file 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 -- cgit v1.2.3