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 57EE558973 for ; Wed, 20 Jan 2016 17:29:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4A94B21C0D2; Wed, 20 Jan 2016 17:29:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EA81E21C0D2 for ; Wed, 20 Jan 2016 17:29:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B97343409EC for ; Wed, 20 Jan 2016 17:29:05 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2BA7CCF3 for ; Wed, 20 Jan 2016 17:29:03 +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: <1453310440.e4eacf02cae10eca48f6906592981d701b0c1973.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/openrc-run.c X-VCS-Directories: src/rc/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: e4eacf02cae10eca48f6906592981d701b0c1973 X-VCS-Branch: master Date: Wed, 20 Jan 2016 17:29:03 +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: 107c0f7b-0701-4ae0-8476-1755b2657370 X-Archives-Hash: be89ab751b13ca9ba57bc3c1fb2fb4a6 commit: e4eacf02cae10eca48f6906592981d701b0c1973 Author: William Hubbs gmail com> AuthorDate: Wed Jan 20 17:19:01 2016 +0000 Commit: William Hubbs gentoo org> CommitDate: Wed Jan 20 17:20:40 2016 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=e4eacf02 openrc-run: in verbose mode, log execution of the shell script This is to show when openrc-run runs the openrc-run.sh script; it is used for debugging. src/rc/openrc-run.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/rc/openrc-run.c b/src/rc/openrc-run.c index 757412a..2a4b90d 100644 --- a/src/rc/openrc-run.c +++ b/src/rc/openrc-run.c @@ -390,6 +390,14 @@ svc_exec(const char *arg1, const char *arg2) } if (exists(RC_SVCDIR "/openrc-run.sh")) { + if (arg2) + einfov("Executing: %s %s %s %s %s", + RC_SVCDIR "/openrc-run.sh", RC_SVCDIR "/openrc-run.sh", + service, arg1, arg2); + else + einfov("Executing: %s %s %s %s", + RC_SVCDIR "/openrc-run.sh", RC_SVCDIR "/openrc-run.sh", + service, arg1); execl(RC_SVCDIR "/openrc-run.sh", RC_SVCDIR "/openrc-run.sh", service, arg1, arg2, (char *) NULL); @@ -397,6 +405,16 @@ svc_exec(const char *arg1, const char *arg2) service, strerror(errno)); _exit(EXIT_FAILURE); } else { + if (arg2) + einfov("Executing: %s %s %s %s %s", + RC_LIBEXECDIR "/sh/openrc-run.sh", + RC_LIBEXECDIR "/sh/openrc-run.sh", + service, arg1, arg2); + else + einfov("Executing: %s %s %s %s", + RC_LIBEXECDIR "/sh/openrc-run.sh", + RC_LIBEXECDIR "/sh/openrc-run.sh", + service, arg1); execl(RC_LIBEXECDIR "/sh/openrc-run.sh", RC_LIBEXECDIR "/sh/openrc-run.sh", service, arg1, arg2, (char *) NULL);