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 568DA1396DA for ; Thu, 26 Oct 2017 18:58:30 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C2F342BC00B; Thu, 26 Oct 2017 18:58:29 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 A1C6D2BC00B for ; Thu, 26 Oct 2017 18:58:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 D131333FE2A for ; Thu, 26 Oct 2017 18:58:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6D5CD834 for ; Thu, 26 Oct 2017 18:58:26 +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: <1509043001.bb9c481f02cb1843e00bf32e98caf18b6b56bb4d.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:master commit in: src/rc/ X-VCS-Repository: proj/openrc X-VCS-Files: src/rc/supervise-daemon.c X-VCS-Directories: src/rc/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: bb9c481f02cb1843e00bf32e98caf18b6b56bb4d X-VCS-Branch: master Date: Thu, 26 Oct 2017 18:58:26 +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: ea7da081-a16b-4864-a435-c7377caf141a X-Archives-Hash: 99e17d1c8f143379a3810c8b9f09e1d0 commit: bb9c481f02cb1843e00bf32e98caf18b6b56bb4d Author: William Hubbs gmail com> AuthorDate: Thu Oct 26 18:36:41 2017 +0000 Commit: William Hubbs gentoo org> CommitDate: Thu Oct 26 18:36:41 2017 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=bb9c481f supervise-daemon: log with the service name instead of "supervise-daemon" src/rc/supervise-daemon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rc/supervise-daemon.c b/src/rc/supervise-daemon.c index b232e215..6c3c55bf 100644 --- a/src/rc/supervise-daemon.c +++ b/src/rc/supervise-daemon.c @@ -420,7 +420,6 @@ static void supervisor(char *exec, char **argv) time_t respawn_now= 0; time_t first_spawn= 0; - openlog(applet, LOG_PID, LOG_DAEMON); #ifndef RC_DEBUG signal_setup_restart(SIGHUP, handle_signal); signal_setup_restart(SIGINT, handle_signal); @@ -561,6 +560,7 @@ int main(int argc, char **argv) applet = basename_c(argv[0]); atexit(cleanup); svcname = getenv("RC_SVCNAME"); + openlog(svcname, LOG_PID, LOG_DAEMON); if ((tmp = getenv("SSD_NICELEVEL"))) if (sscanf(tmp, "%d", &nicelevel) != 1)