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 9240E1396D9 for ; Thu, 26 Oct 2017 19:02:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4C2F92BC02B; Thu, 26 Oct 2017 19:02:01 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 2B1602BC023 for ; Thu, 26 Oct 2017 19:02:01 +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 4E31433D3CE for ; Thu, 26 Oct 2017 19:02:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2D597835 for ; Thu, 26 Oct 2017 19:01:57 +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: <1509044467.558ff4d5fb90b751ebc2852ea907873af2c236fa.williamh@OpenRC> Subject: [gentoo-commits] proj/openrc:0.34.x 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: 558ff4d5fb90b751ebc2852ea907873af2c236fa X-VCS-Branch: 0.34.x Date: Thu, 26 Oct 2017 19:01:57 +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: 5fedd63a-4700-473f-ab6f-ffd068e8316b X-Archives-Hash: 86458775fcf32af9719b9a5265178ffc commit: 558ff4d5fb90b751ebc2852ea907873af2c236fa Author: William Hubbs gmail com> AuthorDate: Thu Oct 26 18:36:41 2017 +0000 Commit: William Hubbs gentoo org> CommitDate: Thu Oct 26 19:01:07 2017 +0000 URL: https://gitweb.gentoo.org/proj/openrc.git/commit/?id=558ff4d5 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)