public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Zac Medico" <zmedico@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-containers/podman/files/
Date: Sun, 09 Feb 2025 17:55:12 +0000 (UTC)	[thread overview]
Message-ID: <1739123710.32737b5387c1c33f9a4c38f08995ebed85472393.zmedico@gentoo> (raw)

commit:     32737b5387c1c33f9a4c38f08995ebed85472393
Author:     NN708 <nn708 <AT> Mac <DOT> lan>
AuthorDate: Sun Feb  9 04:04:19 2025 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Sun Feb  9 17:55:10 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32737b53

app-containers/podman: fix restart behavior of unless-stopped

Signed-off-by: NN708 <nn708 <AT> outlook.com>
Closes: https://github.com/gentoo/gentoo/pull/40494
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 app-containers/podman/files/podman-restart-5.0.0_rc4.initd | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/app-containers/podman/files/podman-restart-5.0.0_rc4.initd b/app-containers/podman/files/podman-restart-5.0.0_rc4.initd
index d02bd64c6279..62bea5bc12de 100644
--- a/app-containers/podman/files/podman-restart-5.0.0_rc4.initd
+++ b/app-containers/podman/files/podman-restart-5.0.0_rc4.initd
@@ -2,21 +2,21 @@
 # Copyright 2015-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-description="Start all containers with restart-policy set to always"
+description="Start all containers with restart-policy set to always or unless-stopped"
 
 command_user="${RUN_AS_USER:=root:root}"
 command="/usr/bin/podman"
-command_args="--log-level ${LOG_LEVEL:=info} start --all --filter restart-policy=always"
+command_args="--log-level ${LOG_LEVEL:=info} start --all --filter restart-policy=always --filter restart-policy=unless-stopped"
 
 depend() {
 	after net
 }
 
 stop() {
-	ebegin "Stopping all containers with restart-policy set to always"
+	ebegin "Stopping all containers with restart-policy set to always or unless-stopped"
 	${command} \
 		--log-level ${LOG_LEVEL} \
 		stop \
-		$(${command} container ls --filter restart-policy=always -q)
-	eend $? "Failed to stop containers with restart-policy set to always"
+		$(${command} container ls --filter restart-policy=always --filter restart-policy=unless-stopped -q)
+	eend $? "Failed to stop containers with restart-policy set to always or unless-stopped"
 }


             reply	other threads:[~2025-02-09 17:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-09 17:55 Zac Medico [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-04-01  5:58 [gentoo-commits] repo/gentoo:master commit in: app-containers/podman/files/ Zac Medico

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=1739123710.32737b5387c1c33f9a4c38f08995ebed85472393.zmedico@gentoo \
    --to=zmedico@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