From 53e034f28afc81cfc46cfcb53e9584ab60bd055c Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 4 Sep 2013 17:20:12 +0000 Subject: testing/openvswitch: update init.d scripts --- testing/openvswitch/ovs-vswitchd.initd | 30 ++++++++++++++---------------- 1 file changed, 14 insertions(+), 16 deletions(-) (limited to 'testing/openvswitch/ovs-vswitchd.initd') diff --git a/testing/openvswitch/ovs-vswitchd.initd b/testing/openvswitch/ovs-vswitchd.initd index eea20db5406..6bf8bfc53c1 100644 --- a/testing/openvswitch/ovs-vswitchd.initd +++ b/testing/openvswitch/ovs-vswitchd.initd @@ -1,24 +1,22 @@ #!/sbin/runscript -# Copyright 1999-2012 Gentoo Foundation +# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/openvswitch/files/ovs-vswitchd,v 1.2 2012/07/18 08:41:29 dev-zero Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/openvswitch/files/ovs-vswitchd-r1,v 1.1 2013/04/08 19:37:58 dev-zero Exp $ -depend() { - use ovsdb-server -} +description="Open vSwitch virtual switch" -start() { - checkpath -d "/var/run/openvswitch" -m 0750 +command="/usr/sbin/ovs-vswitchd" +command_args=" + --pidfile + --detach + --monitor + ${OPTIONS} ${DATABASE}" +pidfile="/var/run/openvswitch/ovs-vswitchd.pid" - ebegin "Starting Open vSwitch daemon" - start-stop-daemon \ - --start --quiet --pidfile "/var/run/openvswitch/ovs-vswitchd.pid" \ - --exec /usr/sbin/ovs-vswitchd -- --pidfile --detach --monitor ${OPTIONS} ${DATABASE} - eend $? +depend() { + use ovsdb-server logger } -stop() { - ebegin "Stopping Open vSwitch daemon" - start-stop-daemon --stop --quiet --pidfile "/var/run/openvswitch/ovs-vswitchd.pid" - eend $? +start_pre() { + checkpath -d "/var/run/openvswitch" -m 0750 } -- cgit v1.2.3