summaryrefslogtreecommitdiff
path: root/net/openvswitch/files/ovsdb-server.in
diff options
context:
space:
mode:
Diffstat (limited to 'net/openvswitch/files/ovsdb-server.in')
-rw-r--r--net/openvswitch/files/ovsdb-server.in21
1 files changed, 10 insertions, 11 deletions
diff --git a/net/openvswitch/files/ovsdb-server.in b/net/openvswitch/files/ovsdb-server.in
index fecbdc12abc2..c57855010135 100644
--- a/net/openvswitch/files/ovsdb-server.in
+++ b/net/openvswitch/files/ovsdb-server.in
@@ -11,30 +11,29 @@
name="ovsdb_server"
rcvar=ovsdb_server_enable
-command="%%PREFIX%%/sbin/ovsdb-server"
-pidfile="%%PREFIX%%/var/run/ovsdb-server.pid"
+command="/usr/local/sbin/ovsdb-server"
+pidfile="/var/run/ovsdb-server.pid"
start_precmd="ovsdb_server_precmd"
load_rc_config $name
: ${ovsdb_server_enable="NO"}
-: ${ovsdb_server_sock="%%PREFIX%%/var/run/openvswitch/db.sock"}
-: ${ovsdb_server_database="%%PREFIX%%/etc/openvswitch/conf.db"}
+: ${ovsdb_server_sock="/var/run/openvswitch/db.sock"}
+: ${ovsdb_server_database="/var/db/openvswitch/conf.db"}
ovsdb_server_precmd() {
[ -e "`dirname $ovsdb_server_database`" ] || \
mkdir -p "`dirname $ovsdb_server_database`"
[ -e "$ovsdb_server_database" ] || \
- %%PREFIX%%/bin/ovsdb-tool create "$ovsdb_server_database" \
- %%PREFIX%%/share/openvswitch/vswitch.ovsschema
+ /usr/local/bin/ovsdb-tool create "$ovsdb_server_database" \
+ /usr/local/share/openvswitch/vswitch.ovsschema
}
command_args="--detach --pidfile=$pidfile \
--remote=punix:$ovsdb_server_sock \
- --remote=db:Open_vSwitch,manager_options \
- --private-key=db:SSL,private_key \
- --certificate=db:SSL,certificate \
- --bootstrap-ca-cert=db:SSL,ca_cert \
- $ovsdb_server_database"
+ --remote=db:Open_vSwitch,Open_vSwitch,manager_options \
+ --private-key=db:Open_vSwitch,SSL,private_key \
+ --certificate=db:Open_vSwitch,SSL,certificate \
+ --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert"
run_rc_command "$1"