From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AEE4B1382C5 for ; Thu, 15 Mar 2018 01:43:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CD756E0831; Thu, 15 Mar 2018 01:43:45 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id ACC79E0831 for ; Thu, 15 Mar 2018 01:43:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5D64B335C75 for ; Thu, 15 Mar 2018 01:43:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D5ACC259 for ; Thu, 15 Mar 2018 01:43:41 +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: <1521077822.40aa69cf3a99fa080375a702631da4d2311ebf3e.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: init.d/ X-VCS-Repository: proj/openrc X-VCS-Files: init.d/agetty.in X-VCS-Directories: init.d/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 40aa69cf3a99fa080375a702631da4d2311ebf3e X-VCS-Branch: master Date: Thu, 15 Mar 2018 01:43:41 +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: ef3f9fbf-f2b2-4907-bd90-ec750ad46f03 X-Archives-Hash: 29743e83f234fef7e33394257d5260f1 commit: 40aa69cf3a99fa080375a702631da4d2311ebf3e Author: William Hubbs gmail com> AuthorDate: Thu Mar 15 01:37:02 2018 +0000 Commit: William Hubbs gentoo org> CommitDate: Thu Mar 15 01:37:02 2018 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=40aa69cf agetty.in: allow status to be displayed init.d/agetty.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/init.d/agetty.in b/init.d/agetty.in index 390b1317..971ee86c 100644 --- a/init.d/agetty.in +++ b/init.d/agetty.in @@ -16,7 +16,6 @@ term_type="${term_type:-linux}" command=/sbin/agetty command_args_foreground="${agetty_options} ${port} ${baud} ${term_type}" pidfile="/run/${RC_SVCNAME}.pid" -export EINFO_QUIET="${quiet:-yes}" depend() { after local @@ -29,5 +28,12 @@ start_pre() { eerror "symbolic links to it for the ports you want to start" eerror "agetty on and add those to the appropriate runlevels." return 1 + else + export EINFO_QUIET="${quiet:-yes}" fi } + +stop_pre() +{ + export EINFO_QUIET="${quiet:-yes}" +}