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/ripng/disable/node.def | 12 ++++++++++++ templates/protocols/ripng/node.def | 4 +--- 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 templates/protocols/ripng/disable/node.def (limited to 'templates/protocols/ripng') diff --git a/templates/protocols/ripng/disable/node.def b/templates/protocols/ripng/disable/node.def new file mode 100644 index 00000000..d23c9c5f --- /dev/null +++ b/templates/protocols/ripng/disable/node.def @@ -0,0 +1,12 @@ +type: bool +help: Disable RIPng daemon +default: false +update: if [ $VAR(@) == "true" ]; + then sudo ${vyatta_sbindir}/vyatta-protocol stop ripngd + else sudo ${vyatta_sbindir}/vyatta-protocol start ripngd + fi +possible completions: + true Stop RIPng daemon + false Start RIPng daemon + +allowed: echo "true false" diff --git a/templates/protocols/ripng/node.def b/templates/protocols/ripng/node.def index 73f86c92..61c30b01 100644 --- a/templates/protocols/ripng/node.def +++ b/templates/protocols/ripng/node.def @@ -1,5 +1,3 @@ help: Configure Routing Information Protocol (RIPng) parameters -create: sudo ${vyatta_sbindir}/vyatta-protocol start ripngd - vyatta-vtysh -c "configure terminal" -c "router ripng" +create: vyatta-vtysh -c "configure terminal" -c "router ripng" delete: vyatta-vtysh -c "configure terminal" -c "no router ripng" - sudo ${vyatta_sbindir}/vyatta-protocol stop ripngd -- cgit v1.2.3