diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-09-04 17:20:12 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-09-04 17:20:12 +0000 |
commit | 53e034f28afc81cfc46cfcb53e9584ab60bd055c (patch) | |
tree | ca55df06a2a5b6ba128f40e8c0d0da19371aaedb /testing/openvswitch/ovs-controller.initd | |
parent | d5395a6e589d061de74853cb43e99f0cd7b55c6f (diff) | |
download | aports-53e034f28afc81cfc46cfcb53e9584ab60bd055c.tar.bz2 aports-53e034f28afc81cfc46cfcb53e9584ab60bd055c.tar.xz |
testing/openvswitch: update init.d scripts
Diffstat (limited to 'testing/openvswitch/ovs-controller.initd')
-rw-r--r-- | testing/openvswitch/ovs-controller.initd | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/testing/openvswitch/ovs-controller.initd b/testing/openvswitch/ovs-controller.initd index 554aebe3f2..dea1f670b9 100644 --- a/testing/openvswitch/ovs-controller.initd +++ b/testing/openvswitch/ovs-controller.initd @@ -1,24 +1,23 @@ #!/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-controller,v 1.1 2012/07/18 08:41:29 dev-zero Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/openvswitch/files/ovs-controller-r1,v 1.1 2013/04/08 19:37:58 dev-zero Exp $ -depend() { - need lo -} +description="Open vSwitch OpenFlow controller" -start() { - checkpath -d "/var/run/openvswitch" -m 0750 +command="/usr/bin/ovs-controller" +command_args=" + --pidfile + --detach + --monitor + ${OPTIONS} ${METHODS}" +pidfile="/var/run/openvswitch/ovs-controller.pid" - 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 $? +depend() { + need net + use logger } -stop() { - ebegin "Stopping Open vSwitch OpenFlow controller" - start-stop-daemon --stop --quiet --pidfile "/var/run/openvswitch/ovs-controller.pid" - eend $? +start_pre() { + checkpath -d "/var/run/openvswitch" -m 0750 } |