aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openvswitch/ovsdb-server.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-09-04 17:20:12 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-09-04 17:20:12 +0000
commit53e034f28afc81cfc46cfcb53e9584ab60bd055c (patch)
treeca55df06a2a5b6ba128f40e8c0d0da19371aaedb /testing/openvswitch/ovsdb-server.initd
parentd5395a6e589d061de74853cb43e99f0cd7b55c6f (diff)
downloadaports-53e034f28afc81cfc46cfcb53e9584ab60bd055c.tar.gz
aports-53e034f28afc81cfc46cfcb53e9584ab60bd055c.tar.bz2
aports-53e034f28afc81cfc46cfcb53e9584ab60bd055c.tar.xz
testing/openvswitch: update init.d scripts
Diffstat (limited to 'testing/openvswitch/ovsdb-server.initd')
-rw-r--r--testing/openvswitch/ovsdb-server.initd49
1 files changed, 26 insertions, 23 deletions
diff --git a/testing/openvswitch/ovsdb-server.initd b/testing/openvswitch/ovsdb-server.initd
index 5eb5daf348..53c2744539 100644
--- a/testing/openvswitch/ovsdb-server.initd
+++ b/testing/openvswitch/ovsdb-server.initd
@@ -1,32 +1,35 @@
#!/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/ovsdb-server,v 1.1 2012/06/27 08:49:34 dev-zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/openvswitch/files/ovsdb-server-r1,v 1.1 2013/04/08 19:37:58 dev-zero Exp $
-depend() {
- need localmount
-}
+description="Open vSwitch database server"
-start() {
- checkpath -d "/var/run/openvswitch" -m 0750
+remote_punix=${DB_SOCKET:+"--remote=punix:${DB_SOCKET}"}
+remote_db=${REMOTE_DB:+"--remote=${REMOTE_DB}"}
+private_key=${PRIVATE_KEY:+"--private-key=${PRIVATE_KEY}"}
+certificate=${CERTIFICATE:+"--certificate=${CERTIFICATE}"}
+bootstrap_ca_cert=${BOOTSTRAP_CA_CERT:+"--bootstrap-ca-cert=${BOOTSTRAP_CA_CERT}"}
- local remote_punix=${DB_SOCKET:+"--remote=punix:${DB_SOCKET}"}
- local remote_db=${REMOTE_DB:+"--remote=${REMOTE_DB}"}
- local private_key=${PRIVATE_KEY:+"--private-key=${PRIVATE_KEY}"}
- local certificate=${CERTIFICATE:+"--certificate=${CERTIFICATE}"}
- local bootstrap_ca_cert=${BOOTSTRAP_CA_CERT:+"--bootstrap-ca-cert=${BOOTSTRAP_CA_CERT}"}
+command="/usr/sbin/ovsdb-server"
+command_args="
+ --pidfile
+ --detach
+ --monitor
+ ${remote_punix}
+ ${remote_db}
+ ${private_key}
+ ${certificate}
+ ${bootstrap_ca_cert}
+ ${DATABASE}
+ ${OPTIONS}"
+pidfile="/var/run/openvswitch/ovsdb-server.pid"
- ebegin "Starting Open vSwitch DB server"
- start-stop-daemon \
- --start --quiet \
- --pidfile "/var/run/openvswitch/ovsdb-server.pid" \
- --exec /usr/sbin/ovsdb-server -- --pidfile --detach --monitor ${remote_punix} ${remote_db} ${private_key} ${certificate} ${bootstrap_ca_cert} ${DATABASE} ${OPTIONS}
- eend $?
+depend() {
+ need localmount
+ use logger
}
-stop() {
- ebegin "Stopping Open vSwitch DB server"
- start-stop-daemon --stop --quiet --pidfile "/var/run/openvswitch/ovsdb-server.pid"
- eend $?
+start_pre() {
+ checkpath -d "/var/run/openvswitch" -m 0750
}
-