X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=debian%2Fopenvswitch-switch.init;h=935ea48e7f4b72f6ddcf3ea9a5e0fb5ca61f2890;hb=d3c5445150eff927f4022008300436ca3dad3474;hp=0907cdf7ca96120253b872f3a682a32f13537be9;hpb=9704460403a02554595b5a7ed17914a0b0357cac;p=sliver-openvswitch.git diff --git a/debian/openvswitch-switch.init b/debian/openvswitch-switch.init index 0907cdf7c..935ea48e7 100755 --- a/debian/openvswitch-switch.init +++ b/debian/openvswitch-switch.init @@ -203,13 +203,11 @@ case "$1" in # Create an empty configuration database if it doesn't exist. if test ! -e /etc/openvswitch/conf.db; then - install -d -m 755 -o root -g root /etc/openvswitch - # Create configuration database. ovsdb-tool -vANY:console:emer \ create /etc/openvswitch/conf.db \ /usr/share/openvswitch/vswitch.ovsschema - else + elif ! running ovsdb-server; then # Upgrade or downgrade schema and compact database. ovsdb-tool -vANY:console:emer \ convert /etc/openvswitch/conf.db \ @@ -247,7 +245,7 @@ case "$1" in set -- "$@" --bootstrap-ca-cert=db:SSL,ca_cert set -- "$@" $OVSDB_SERVER_OPTS echo -n "Starting ovsdb-server: " - start-stop-daemon --start --quiet \ + start-stop-daemon --start --quiet --oknodo \ --pidfile /var/run/openvswitch/ovsdb-server.pid \ --chdir /var/log/openvswitch/cores \ --exec $ovsdb_server -- "$@" @@ -267,7 +265,7 @@ case "$1" in set -- "$@" unix:/var/run/openvswitch/db.sock set -- "$@" $OVS_VSWITCHD_OPTS echo -n "Starting ovs-vswitchd: " - start-stop-daemon --start --quiet \ + start-stop-daemon --start --quiet --oknodo \ --pidfile /var/run/openvswitch/ovs-vswitchd.pid \ --chdir /var/log/openvswitch/cores \ --exec $ovs_vswitchd -- "$@"