public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/lxd/, app-emulation/lxd/files/
Date: Tue, 16 Feb 2021 08:29:49 +0000 (UTC)	[thread overview]
Message-ID: <1613464182.9f88706ccb6f6582b42ff558d679ebe39bc6fb93.juippis@gentoo> (raw)

commit:     9f88706ccb6f6582b42ff558d679ebe39bc6fb93
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 16 08:27:59 2021 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Tue Feb 16 08:29:42 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f88706c

app-emulation/lxd: don't shutdown all cluster instances with service

Closes: https://bugs.gentoo.org/770511
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 app-emulation/lxd/files/lxd-4.0.0.initd            | 25 +++-------------------
 .../{lxd-4.0.4-r5.ebuild => lxd-4.0.4-r6.ebuild}   |  0
 2 files changed, 3 insertions(+), 22 deletions(-)

diff --git a/app-emulation/lxd/files/lxd-4.0.0.initd b/app-emulation/lxd/files/lxd-4.0.0.initd
index 03ec12e44f5..51284f6e2ae 100644
--- a/app-emulation/lxd/files/lxd-4.0.0.initd
+++ b/app-emulation/lxd/files/lxd-4.0.0.initd
@@ -1,13 +1,11 @@
 #!/sbin/openrc-run
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 DAEMON=/usr/sbin/lxd
 PIDFILE=/run/lxd.pid
 TIMEOUT=10
 
-extra_commands="stopall"
-
 depend() {
 	need net
 	need lxcfs
@@ -31,24 +29,7 @@ start() {
 }
 
 stop() {
-	if [[ ${RC_GOINGDOWN} = YES ]] || [[ ${RC_REBOOT} = YES ]]; then
-		stopall
-	else
-		ebegin "Stopping lxd service (but not containers)."
-		start-stop-daemon --stop --quiet -R TERM/45 -p ${PIDFILE}
-		eend ${?}
-	fi
-}
-
-stopall() {
-	ebegin "Stopping lxd service and containers."
-	lxc stop --all --timeout $TIMEOUT >/dev/null 2>&1
-	if [[ ${?} -ne 0 ]]; then
-		lxc stop --all --force || eerror "Could not stop all containers."
-	fi
-	if "${DAEMON}" shutdown; then
-		rm -f ${PIDFILE}
-		eend 0
-	fi
+	ebegin "Stopping lxd service (but not containers)."
+	start-stop-daemon --stop --quiet -R TERM/45 -p ${PIDFILE}
 	eend ${?}
 }

diff --git a/app-emulation/lxd/lxd-4.0.4-r5.ebuild b/app-emulation/lxd/lxd-4.0.4-r6.ebuild
similarity index 100%
rename from app-emulation/lxd/lxd-4.0.4-r5.ebuild
rename to app-emulation/lxd/lxd-4.0.4-r6.ebuild


             reply	other threads:[~2021-02-16  8:29 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-16  8:29 Joonas Niilola [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-11-16 13:24 [gentoo-commits] repo/gentoo:master commit in: app-emulation/lxd/, app-emulation/lxd/files/ Joonas Niilola
2021-11-09 11:44 Joonas Niilola
2021-09-24  8:15 Florian Schmaus
2020-10-21  6:04 Joonas Niilola
2020-07-13  7:16 Joonas Niilola
2020-06-26  8:13 Joonas Niilola
2020-06-23  7:25 Joonas Niilola
2018-09-15 13:09 Erik Mackdanz
2018-08-19 22:27 Erik Mackdanz
2018-08-19 22:20 Erik Mackdanz
2018-07-01 17:15 Erik Mackdanz
2018-07-01 17:10 Erik Mackdanz
2018-01-26 21:22 Patrice Clement
2018-01-26 21:22 Patrice Clement
2017-11-29 11:21 Agostino Sarubbo
2017-11-29 11:21 Agostino Sarubbo
2017-09-21 12:41 Amy Liffey
2017-08-20  8:53 Michał Górny
2017-08-16 15:20 Michał Górny
2017-06-08  8:43 Zac Medico
2017-03-20  4:54 Erik Mackdanz
2017-03-20  4:37 Erik Mackdanz
2017-01-30  1:54 Erik Mackdanz
2017-01-03  4:05 Erik Mackdanz
2016-10-11  4:22 Erik Mackdanz
2016-10-04  1:46 Erik Mackdanz
2016-10-04  1:39 Erik Mackdanz
2016-09-04 17:51 Erik Mackdanz
2016-08-24 10:38 Pacho Ramos
2016-05-20  4:08 Erik Mackdanz
2016-04-14  3:43 Erik Mackdanz
2016-03-08  9:45 Erik Mackdanz
2016-02-28 18:08 Erik Mackdanz
2016-02-03 23:55 Erik Mackdanz
2016-01-25  0:10 Erik Mackdanz
2016-01-06  3:24 Erik Mackdanz
2016-01-06  3:22 Erik Mackdanz
2015-12-29  1:41 Erik Mackdanz
2015-12-29  1:39 Erik Mackdanz
2015-12-12  5:38 Erik Mackdanz
2015-11-12 15:59 Erik Mackdanz
2015-11-06  4:27 Erik Mackdanz
2015-11-06  4:23 Erik Mackdanz
2015-10-11 14:39 Alex Brandt
2015-08-09 20:49 Alex Brandt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1613464182.9f88706ccb6f6582b42ff558d679ebe39bc6fb93.juippis@gentoo \
    --to=juippis@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox