From cdb36ab188ea14ae593f3a2f650540c11a201071 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Wed, 26 Sep 2012 02:24:03 -0500 Subject: testing/openvswitch: new aport --- testing/openvswitch/ovs-controller.initd | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 testing/openvswitch/ovs-controller.initd (limited to 'testing/openvswitch/ovs-controller.initd') diff --git a/testing/openvswitch/ovs-controller.initd b/testing/openvswitch/ovs-controller.initd new file mode 100644 index 0000000000..554aebe3f2 --- /dev/null +++ b/testing/openvswitch/ovs-controller.initd @@ -0,0 +1,24 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/openvswitch/files/ovs-controller,v 1.1 2012/07/18 08:41:29 dev-zero Exp $ + +depend() { + need lo +} + +start() { + checkpath -d "/var/run/openvswitch" -m 0750 + + ebegin "Starting Open vSwitch OpenFlow controller" + start-stop-daemon \ + --start --quiet --pidfile "/var/run/openvswitch/ovs-controller.pid" \ + --exec /usr/bin/ovs-controller -- --pidfile --detach --monitor ${OPTIONS} ${METHODS} + eend $? +} + +stop() { + ebegin "Stopping Open vSwitch OpenFlow controller" + start-stop-daemon --stop --quiet --pidfile "/var/run/openvswitch/ovs-controller.pid" + eend $? +} -- cgit v1.2.3