Skip to content

Commit

Permalink
debian: Make the init script's start command idempotent
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Horman <[email protected]>
Signed-off-by: Ben Pfaff <[email protected]>
  • Loading branch information
horms authored and blp committed Oct 13, 2010
1 parent 65d9664 commit f3c51ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions debian/openvswitch-switch.init
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ case "$1" in
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 \
Expand Down Expand Up @@ -247,7 +247,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 -- "$@"
Expand All @@ -267,7 +267,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 -- "$@"
Expand Down

0 comments on commit f3c51ad

Please sign in to comment.