X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from ncopa-laptop (3.203.202.84.customer.cdi.no [84.202.203.3]) (using SSLv3 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: nc@alpinelinux.org) by mail.alpinelinux.org (Postfix) with ESMTPSA id 98FDEDC0100; Wed, 12 Mar 2014 19:13:52 +0000 (UTC) Date: Wed, 12 Mar 2014 19:13:48 +0000 From: Natanael Copa To: Stuart Cardall Cc: alpine-devel@lists.alpinelinux.org Subject: Re: [alpine-devel] [PATCH] /testing/openvswitch - version bump to 2.01 + revised init scripts Message-ID: <20140312191348.08adf429@ncopa-laptop> In-Reply-To: <1394645810-19848-1-git-send-email-developer@it-offshore.co.uk> References: <1394645810-19848-1-git-send-email-developer@it-offshore.co.uk> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.20; x86_64-alpine-linux-musl) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit I applied it and cleaned up the patch handling a bit and added a patch for musl building. I think the below needs be done differently though. On Wed, 12 Mar 2014 17:36:50 +0000 Stuart Cardall wrote: > db="/etc/openvswitch/conf.db" > if [ -e "$db" ]; then > - echo "Trying schema migration for $db..." > - ovsdb-tool convert "$db" "/usr/share/openvswitch/vswitch.ovsschema" > + print_red "\nStopping OVS Database\n"; rc-service ovsdb-server stop > + print_green "\nTrying schema migration for $db..." > + ovsdb-tool convert "$db" "/usr/share/openvswitch/vswitch.ovsschema" > + print_green "\nStarting OVS Database\n"; rc-service ovsdb-server start > else > - echo "Creating new Open vSwitch database $db..." > - ovsdb-tool create "$db" "/usr/share/openvswitch/vswitch.ovsschema" > + print_green "\nCreating new Open vSwitch database $db...\n" > + ovsdb-tool create "$db" "/usr/share/openvswitch/vswitch.ovsschema" > fi > > + What will happen if you have a conf.db, but it breaks your networking so you stop the service. Then you upgrade. The post install/upgrade will start it even if that was not the intention. We don't start and stop services from install/upgrade/deinstall scripts. -nc --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---