[Bug 1314888] [NEW] request for ovs upstart events

Hiroaki Kawai 1314888 at bugs.launchpad.net
Thu May 1 04:43:52 UTC 2014


Public bug reported:

emitting events from openvswitch makes startup scheduling easy that are
waiting for ovs start up.

=== modified file 'debian/openvswitch-switch.upstart'
--- debian/openvswitch-switch.upstart   2013-08-23 11:18:52 +0000
+++ debian/openvswitch-switch.upstart   2014-05-01 04:37:12 +0000
@@ -2,6 +2,9 @@
 description "Open vSwitch switch"
 author "James Page <james.page at ubuntu.com"

+emits ovs-up
+emits ovs-pre-down
+
 start on (local-filesystems and net-device-up IFACE=lo)
 stop on runlevel [!2345]

@@ -32,11 +35,13 @@
   fi
   set "$@" $OVS_CTL_OPTS
   "$@"
+  initctl emit ovs-up
 end script

 post-stop script
   . /usr/share/openvswitch/scripts/ovs-lib
   test -e /etc/default/openvswitch-switch && . /etc/default/openvswitch-switch

+  initctl emit ovs-pre-down
   ovs_ctl stop
 end script

** Affects: openvswitch (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to openvswitch in Ubuntu.
https://bugs.launchpad.net/bugs/1314888

Title:
  request for ovs upstart events

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openvswitch/+bug/1314888/+subscriptions



More information about the Ubuntu-server-bugs mailing list