[Pkg-ganeti-devel] [ganeti] 01/02: postinst: fix harmless double-start

Apollon Oikonomopoulos apoikos at moszumanska.debian.org
Thu Mar 20 09:15:37 UTC 2014


This is an automated email from the git hooks/post-receive script.

apoikos pushed a commit to branch master
in repository ganeti.

commit efa95da33867b482d18a38964f8e1edf06e415cc
Author: Apollon Oikonomopoulos <apoikos at debian.org>
Date:   Thu Mar 20 11:08:20 2014 +0200

    postinst: fix harmless double-start
    
    We were performing a full restart just to have debhelper start the
    service again in the snippet below. Instead, we simply stop the service
    and let debhelper bring it up again.
---
 debian/ganeti.postinst.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/ganeti.postinst.in b/debian/ganeti.postinst.in
index c6f8efa..aafbfb5 100644
--- a/debian/ganeti.postinst.in
+++ b/debian/ganeti.postinst.in
@@ -67,10 +67,11 @@ case "$1" in
 	fi
 
 	# Restart the service if we have either updated the symlinks, or
-	# shipped the same minor version
+	# shipped the same minor version. We only stop the service here and
+	# let the debhelper snippet below start it again.
 	if [ "$update_symlinks" = 1 -o "${2%.*}" = "@VER@" ]; then
 		if [ -x "/etc/init.d/ganeti" ]; then
-			invoke-rc.d ganeti restart || true
+			invoke-rc.d ganeti stop || true
 		fi
 	fi
     ;;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ganeti/ganeti.git



More information about the Pkg-ganeti-devel mailing list