From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QllRk-0005rs-Aw for garchives@archives.gentoo.org; Tue, 26 Jul 2011 17:29:32 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2535B21C1F2; Tue, 26 Jul 2011 17:29:24 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id E708F21C1F2 for ; Tue, 26 Jul 2011 17:29:23 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 885A72AC013 for ; Tue, 26 Jul 2011 17:29:23 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 9170D8003D for ; Tue, 26 Jul 2011 17:29:22 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: 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: df1f02ac848a010092df2d3d40b8828051522b4b Date: Tue, 26 Jul 2011 17:29:22 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 8f2d0df1b5fe3c4615f9e9a89dadb094 commit: df1f02ac848a010092df2d3d40b8828051522b4b Author: William Hubbs gentoo org> AuthorDate: Tue Jul 26 17:19:59 2011 +0000 Commit: William Hubbs gentoo org> CommitDate: Tue Jul 26 17:19:59 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/openrc.git;a=3D= commit;h=3Ddf1f02ac Runscript: print deprecation warning for opts variable Openrc uses the extra_commands and extra_started_commands variables to list extra commands for services. Also, it supports the opts variable which is used to assist migration from baselayout-1. I am adding this warning to encourage switching from opts to extra_commands/extra_started_commands. I would like to remove support for opts eventually. --- sh/runscript.sh.in | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/sh/runscript.sh.in b/sh/runscript.sh.in index a3f387e..df34b5e 100644 --- a/sh/runscript.sh.in +++ b/sh/runscript.sh.in @@ -206,6 +206,12 @@ for _f in $required_files; do done unset _f =20 +if [ -n "$opts" ]; then + ewarn "Use of the opts variable is deprecated and will be" + ewarn "removed in the future." + ewarn "Please use extra_commands or extra_started_commands." +fi + while [ -n "$1" ]; do # Sepcial case depend if [ "$1" =3D depend ]; then