From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 1B2C41381F3 for ; Sun, 26 May 2013 02:06:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BACADE0A7D; Sun, 26 May 2013 02:06:14 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5128EE0A7D for ; Sun, 26 May 2013 02:06:14 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6BDFB33DF5F for ; Sun, 26 May 2013 02:06:13 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id D84CAE545B for ; Sun, 26 May 2013 02:06:10 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1369533850.e451d173faeef52bd4723a50363e37e6d481521f.WilliamH@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: sh/ X-VCS-Repository: proj/openrc X-VCS-Files: sh/runscript.sh.in X-VCS-Directories: sh/ X-VCS-Committer: WilliamH X-VCS-Committer-Name: William Hubbs X-VCS-Revision: e451d173faeef52bd4723a50363e37e6d481521f X-VCS-Branch: master Date: Sun, 26 May 2013 02:06:10 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: ab694997-953e-4f8f-aa7c-acd7e0e94eb2 X-Archives-Hash: 3ae438a0db32a26e99810966b34fe9ca commit: e451d173faeef52bd4723a50363e37e6d481521f Author: William Hubbs gmail com> AuthorDate: Sun May 26 02:04:10 2013 +0000 Commit: William Hubbs gentoo org> CommitDate: Sun May 26 02:04:10 2013 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=e451d173 runscript.sh: run cgroup_cleanup automatically after stop --- sh/runscript.sh.in | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/sh/runscript.sh.in b/sh/runscript.sh.in index dcddd9b..58e8eac 100644 --- a/sh/runscript.sh.in +++ b/sh/runscript.sh.in @@ -302,7 +302,8 @@ while [ -n "$1" ]; do then "$1"_post || exit $? fi - [ "$(command -v cgroup_cleanup)" = "cgroup_cleanup" ] && \ + [ "$(command -v cgroup_cleanup)" = "cgroup_cleanup" -a \ + "$1" = "stop" ] && \ cgroup_cleanup shift continue 2