aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openvswitch/ovs-vswitchd.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-10-09 07:33:03 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-10-09 07:35:08 +0000
commitb5ab30544804ed97779d3f7b77d1e18fa8d8f690 (patch)
treef4e23bb37710c6bc4ce9ea67371c55b9e1683a2f /testing/openvswitch/ovs-vswitchd.initd
parent2a06a0afde4bcfae58261d3962f361cb4ef4db66 (diff)
downloadaports-b5ab30544804ed97779d3f7b77d1e18fa8d8f690.tar.gz
aports-b5ab30544804ed97779d3f7b77d1e18fa8d8f690.tar.bz2
aports-b5ab30544804ed97779d3f7b77d1e18fa8d8f690.tar.xz
testing/openvswitch: add ifupdown script and misc clean up
Diffstat (limited to 'testing/openvswitch/ovs-vswitchd.initd')
-rw-r--r--testing/openvswitch/ovs-vswitchd.initd14
1 files changed, 7 insertions, 7 deletions
diff --git a/testing/openvswitch/ovs-vswitchd.initd b/testing/openvswitch/ovs-vswitchd.initd
index debdf61560..1cc9b35a5f 100644
--- a/testing/openvswitch/ovs-vswitchd.initd
+++ b/testing/openvswitch/ovs-vswitchd.initd
@@ -5,21 +5,21 @@
description="Open vSwitch virtual switch"
+pidfile="/var/run/openvswitch/ovs-vswitchd.pid"
command="/usr/sbin/ovs-vswitchd"
command_args="
- --pidfile
+ --pidfile=$pidfile
--detach
--monitor
${OPTIONS} ${DATABASE}"
-pidfile="/var/run/openvswitch/ovs-vswitchd.pid"
depend() {
- need localmount ovsdb-server
- after bootmisc hwdrivers modules
- before net
- use logger
+ need localmount ovsdb-server
+ after bootmisc hwdrivers modules
+ before net
+ use logger
}
start_pre() {
- checkpath -d "/var/run/openvswitch" -m 0750
+ checkpath --directory "${pidfile%/*}" --mode 0750
}