From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 0KZ8G9GMuWQVTAEASxT56A (envelope-from ) for ; Thu, 20 Jul 2023 21:36:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oFBiG9GMuWQyLAEA9RJhRA (envelope-from ) for ; Thu, 20 Jul 2023 21:36:49 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 32A5451904 for ; Thu, 20 Jul 2023 21:36:49 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debian.org header.s=1.vagrant.user header.b=Ero9CYUm; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1689881809; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=7CK6zUPV1PoBQwlsxBzuroGWWp7MUat7/VuUqRaMs5s=; b=uPZthOON5mVzUj+DQ7yOdcxB+Vfd5TbGtdU1JlKfUx+Zrr5Hyw+FbMyQBm5qqxvY9HH1gb 534WZW0D/3IwTp7ZdyYqm0zFM3qxAsjrDnbYDjy1i509+02C6j/eAJPHMaDPtZQpEOOpPu 4KkkTKbEGzikPfbqA6BwX3UGCkuXueJo9kzkEmQIxxVdMv3Zz4PZAmxW3uFaoP3c4S05g1 +S8mJOGP/6xM/15urBQwufNrwlbPojxOzTXzOtS1AJZRUf+t+M4vd/ElqoTsFjZS9zq8Ug VHosOXZu6KgHojE6uaKETIHwYrHcYjameT+DyHOCmF3ZAGZsFMycHjPjejWu0w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debian.org header.s=1.vagrant.user header.b=Ero9CYUm; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1689881809; a=rsa-sha256; cv=none; b=PJOiv25yiPJOPQGlDqPgXwUNfHCKmyLRnwXT1S1+o0XB1FOO3VkZdRtzw2mbh8DRwf2TxB q6uMHpH5qUF6MC7Jkj881910WhPyuxacjqg1iovamct9lGmZChfLdJyaG0mkrpKq/UPX6u MReMhbt4werwhX58nVbp6piC2FBkRKc/MiY1L+eL3yQaBnQuKkPXnarkUgFKLacfua0cTA sUtCM2WjNt0NzUs+waxxRNVkr13dmU0c+dM2Cnza8Dt/UTfpoK+fg8HBb3CWEANrXb4bA4 7uuGfJo5TylHO6u4znC8sHvQR30cnZHtoiUOX9fV3quZKOi0Dlm0TZb4Nd9wIA== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qMZRT-0003pr-Rt; Thu, 20 Jul 2023 15:36:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qMZRS-0003pN-6M for bug-guix@gnu.org; Thu, 20 Jul 2023 15:36:02 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qMZRR-0007XE-Uv for bug-guix@gnu.org; Thu, 20 Jul 2023 15:36:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qMZRR-0006tG-Qz for bug-guix@gnu.org; Thu, 20 Jul 2023 15:36:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#48323: guix-daemon.service and guix-publish.service use deprecated StandardError/StandardOutput features Resent-From: Vagrant Cascadian Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Thu, 20 Jul 2023 19:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48323 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 48323@debbugs.gnu.org Received: via spool by 48323-submit@debbugs.gnu.org id=B48323.168988174926464 (code B ref 48323); Thu, 20 Jul 2023 19:36:01 +0000 Received: (at 48323) by debbugs.gnu.org; 20 Jul 2023 19:35:49 +0000 Received: from localhost ([127.0.0.1]:59959 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMZRF-0006sl-8P for submit@debbugs.gnu.org; Thu, 20 Jul 2023 15:35:49 -0400 Received: from cascadia.aikidev.net ([173.255.214.101]:59082) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qMZRD-0006sU-BI for 48323@debbugs.gnu.org; Thu, 20 Jul 2023 15:35:48 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:7:77:0:50]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id E8AA71AD05; Thu, 20 Jul 2023 12:35:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=debian.org; s=1.vagrant.user; t=1689881738; bh=6W7Qj+fkZR52rZ4qZHYsrGJvcF5zyPPK4OUIwpXX5JA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Ero9CYUmoNaQ1hlBnpBuanPtE0iObDOJnFb8J2C/JdfxcD9pSk3SbAS0SJjBvzmhf q+SQuUQOLEY7RKegkpPQddEh4Rl7ni4GGw/OcKljlKztXjg9wjCBpGHNQEmdKusXf2 /RGGYbaOXRt6+XiPlYrTYyNpUvTz/VIixUeVuZwA5BMAkZyLxrYYLHQXNld8jHyooi 4FA0t7u3wAx+fQ85MYHS6Gmrwd+COdUE/MvMLx2MbCpdUQ2fC7TPPdyKRhgJ1cOQJh QxseWuXKYNxuLEAkpi0gsmjYZH+Vq7x39g+BcXxhmN52Oa2D7iKTIdz/Vv7tD1swZv hzDcKc+VQ+8oA== From: Vagrant Cascadian In-Reply-To: <87fslw6izp.fsf@gnu.org> References: <87tunbr7qt.fsf@yucca> <87fslw6izp.fsf@gnu.org> Date: Thu, 20 Jul 2023 12:35:33 -0700 Message-ID: <87a5vq1im2.fsf@wireframe> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -3.75 X-Migadu-Queue-Id: 32A5451904 X-Migadu-Spam-Score: -3.75 X-Migadu-Scanner: mx0.migadu.com X-TUID: du+1KjGnD8Sb --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2022-04-29, Ludovic Court=C3=A8s wrote: > Vagrant Cascadian skribis: > >> Both guix-daemon.service and guix-publish.service make use of >> StandardError=3Dsyslog and StandardOutput=3Dsyslog. > > [...] > >> So apparently need to switch the .service files to use "journal". I am >> not sure what implications that would have for installing guix on a >> foreign distro, such as minimum systemd version, or if anything needs >> significant changes. > > Could you confirm that setting those to =E2=80=9Cjournal=E2=80=9D works o= n Debian? > > If it does, it=E2=80=99s probably safe now to make this change, so feel f= ree to > commit it in Guix. So, I finally got around to testing this... Feels a little odd just pushing after testing over a year later, although the patch is fairly trivial... Patch attached! live well, vagrant --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: inline; filename=0001-etc-systemd-services-switch-to-journal-for-output-an.patch Content-Transfer-Encoding: quoted-printable From=202c3a09314b0223531ab41407d619bcf300b4f422 Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian Date: Thu, 20 Jul 2023 12:13:55 -0700 Subject: [PATCH] etc: systemd services: switch to "journal" for output and error logging. The "syslog" method has been deprecated for years, and issues a warning: Standard output type syslog is obsolete, automatically updating to journal. Please update your unit file, and consider removing the setting altogether. Fixes: #48323 * etc/guix-daemon.service.in (StandardOutput): Use "journal" (StandardError): Likewise. * etc/guix-publish.service.in (StandardOutput): Likewise. (StandardError): Likewise. =2D-- etc/guix-daemon.service.in | 4 ++-- etc/guix-publish.service.in | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/etc/guix-daemon.service.in b/etc/guix-daemon.service.in index 9dbc3b5678..5e75379b5e 100644 =2D-- a/etc/guix-daemon.service.in +++ b/etc/guix-daemon.service.in @@ -9,8 +9,8 @@ Description=3DBuild daemon for GNU Guix ExecStart=3D@localstatedir@/guix/profiles/per-user/root/current-guix/bin/g= uix-daemon \ --build-users-group=3Dguixbuild --discover=3Dno Environment=3D'GUIX_LOCPATH=3D@localstatedir@/guix/profiles/per-user/root/= guix-profile/lib/locale' LC_ALL=3Den_US.utf8 =2DStandardOutput=3Dsyslog =2DStandardError=3Dsyslog +StandardOutput=3Djournal +StandardError=3Djournal =20 # Work around a nasty systemd =E2=80=98feature=E2=80=99 that kills the ent= ire process tree # (including the daemon!) if any child, such as cc1plus, runs out of memor= y. diff --git a/etc/guix-publish.service.in b/etc/guix-publish.service.in index b8fd3b4c03..0d82e73d94 100644 =2D-- a/etc/guix-publish.service.in +++ b/etc/guix-publish.service.in @@ -11,8 +11,8 @@ After=3Dguix-daemon.service [Service] ExecStart=3D@localstatedir@/guix/profiles/per-user/root/current-guix/bin/g= uix publish --user=3Dnobody --port=3D8181 Environment=3D'GUIX_LOCPATH=3D@localstatedir@/guix/profiles/per-user/root/= guix-profile/lib/locale' LC_ALL=3Den_US.utf8 =2DStandardOutput=3Dsyslog =2DStandardError=3Dsyslog +StandardOutput=3Djournal +StandardError=3Djournal =20 # Despite the name, this is rate-limited: a broken daemon will eventually = fail. Restart=3Dalways base-commit: 21b718f4d6c3ded8ef50d12f6e9ae6474f74620f =2D-=20 2.39.2 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCZLmMhQAKCRDcUY/If5cW qu3nAP99/RzWW16Vb2dyu44npNUOSw92hqB3zQ0WbBOfdQwR8AD/Th7vhuZeY/Ya SiUYB5R3GisDwaF1Uq7Fdb77rgx6Ygs= =cPVr -----END PGP SIGNATURE----- --==-=-=--