From 5205f4cd0d68a78c86fce6588f9c276861bb9cdd Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 16 Feb 2009 15:25:14 -0800 Subject: Move daemon start to the disable node Need way to get daemons started before top level node. Really a hack because of the way priorities are managed on node hieararchy --- templates/protocols/rip/disable/node.def | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 templates/protocols/rip/disable/node.def (limited to 'templates/protocols/rip/disable') diff --git a/templates/protocols/rip/disable/node.def b/templates/protocols/rip/disable/node.def new file mode 100644 index 00000000..4cd56588 --- /dev/null +++ b/templates/protocols/rip/disable/node.def @@ -0,0 +1,12 @@ +type: bool +help: Disable RIP daemon +default: false +update: if [ $VAR(@) == "true" ]; + then sudo ${vyatta_sbindir}/vyatta-protocol stop ripd + else sudo ${vyatta_sbindir}/vyatta-protocol start ripd + fi +possible completions: + true Stop RIP daemon + false Start RIP daemon + +allowed: echo "true false" -- cgit v1.2.3