From patchwork Thu Apr 13 01:24:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Cournoyer X-Patchwork-Id: 49129 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C39D7174BB; Thu, 13 Apr 2023 02:25:41 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id C5F62173E2 for ; Thu, 13 Apr 2023 02:25:40 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pmli0-0007pu-FY; Wed, 12 Apr 2023 21:25:08 -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 1pmlhz-0007ns-4y for guix-patches@gnu.org; Wed, 12 Apr 2023 21:25:07 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pmlhv-0004Zs-D2 for guix-patches@gnu.org; Wed, 12 Apr 2023 21:25:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pmlhv-0008Fk-94 for guix-patches@gnu.org; Wed, 12 Apr 2023 21:25:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62802] [PATCH 3/4] services/syslog: Strip leading white space indent in syslog.conf. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 13 Apr 2023 01:25:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62802 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62802@debbugs.gnu.org Cc: Maxim Cournoyer Received: via spool by 62802-submit@debbugs.gnu.org id=B62802.168134908131664 (code B ref 62802); Thu, 13 Apr 2023 01:25:03 +0000 Received: (at 62802) by debbugs.gnu.org; 13 Apr 2023 01:24:41 +0000 Received: from localhost ([127.0.0.1]:42140 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmlhZ-0008Ee-IG for submit@debbugs.gnu.org; Wed, 12 Apr 2023 21:24:41 -0400 Received: from mail-qt1-f173.google.com ([209.85.160.173]:44869) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pmlhX-0008E7-NS for 62802@debbugs.gnu.org; Wed, 12 Apr 2023 21:24:40 -0400 Received: by mail-qt1-f173.google.com with SMTP id cg4so4977220qtb.11 for <62802@debbugs.gnu.org>; Wed, 12 Apr 2023 18:24:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681349074; x=1683941074; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SN+J/ZlWLAFtrbldkmME74Nw70ZO4SBPficaocjB9v4=; b=djrglG3LAChzk1KMds77K9fWoD9GcYYG6SWSWDuyiCix91UPUDQkykNR9sFj+0jILw 7aaIz1Pngjit6iixEP8Ly1Oe7X6vsk3tLTqU2AJiSO78z5944FK6SVwl+rdgdgen0lLf u1FfyPZPnCBQ4JJzUzWcehqN5pWM1ly3b8Kf2DC12TQyVPE8tERFoP/glgWKoONr96yL meyYPgDsBeq5IFC150Bf+ubdqjx/rAcxyXbQjT72xtGnzgqKB9TFkW/3x39hj/du6Px9 Yu8pAT7t93IKmcnSuJX//SCy7R3Em5ddi943+E1LvpIcgeIttGPwTJkvlmAyuo5kX+Xm Alkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681349074; x=1683941074; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SN+J/ZlWLAFtrbldkmME74Nw70ZO4SBPficaocjB9v4=; b=IUy+S3eL+M1jUcMwdiVdWYj67mLr3DX8Dc2v9UPI1QK4E1G+nn4uZmHrUSwK5wI5wn uOh8urYC+hsad7VA2s2XJKUECVn9sx23YnYYfgSuBkWchWLgnmrsJNA4fhrVjucBaAlX rzGUnF2SC+zmyL1KaWQx2zzEbqu+/qqGBy17P0Mz6KvZ/ozohcr91D6tioN9f7NChYFr e5IH+3iCR5iFVjOYtLMFnOB6MZY6HxJnWdXuJ+/8PEXxr6plk3aQ1ZG6iJP92BTTuoYh ixdyiAhee56Mcj92I/0DQv5UywiuG/2d+KVchPkr/jxA7YRTMeiM+FohJ8NejiF7nXAl ULwQ== X-Gm-Message-State: AAQBX9eJGU1aiK1it5yzTBvQXG7Sjl0JCcdjiE4NwzLPPhxRT2cKEeG9 rnFlAVXWrSZS5L8zH/lfjihIqI0oC7I= X-Google-Smtp-Source: AKy350b2YnduisSXBBfdkQZwg61evGb6qh43khaR01Qpt64y+6/+o3TJj/PAdtRQxX3+m/EIoli+DA== X-Received: by 2002:a05:622a:4:b0:3e3:5ac8:c17f with SMTP id x4-20020a05622a000400b003e35ac8c17fmr944257qtw.4.1681349074086; Wed, 12 Apr 2023 18:24:34 -0700 (PDT) Received: from localhost.localdomain (dsl-152-224.b2b2c.ca. [66.158.152.224]) by smtp.gmail.com with ESMTPSA id l22-20020ac81496000000b003e4c6b2cc35sm142505qtj.24.2023.04.12.18.24.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Apr 2023 18:24:33 -0700 (PDT) From: Maxim Cournoyer Date: Wed, 12 Apr 2023 21:24:06 -0400 Message-Id: <20230413012408.2759-3-maxim.cournoyer@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230413012408.2759-1-maxim.cournoyer@gmail.com> References: <20230413012408.2759-1-maxim.cournoyer@gmail.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches This is a cosmetic change. * gnu/services/base.scm (%default-syslog.conf): Add a comment referencing the documentation. Strip the extraneous leading trailing white space indent. --- gnu/services/base.scm | 41 ++++++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/gnu/services/base.scm b/gnu/services/base.scm index db7a0bbc56..0cde151e1a 100644 --- a/gnu/services/base.scm +++ b/gnu/services/base.scm @@ -1491,31 +1491,34 @@ (define-deprecated (nscd-service #:optional (config (nscd-configuration))) Service Switch}, for an example." (service nscd-service-type config)) -;; Snippet adapted from the GNU inetutils manual. +;;; Snippet adapted from the GNU inetutils manual. (define %default-syslog.conf - (plain-file "syslog.conf" " - # Log all error messages, authentication messages of - # level notice or higher and anything of level err or - # higher to the console. - # Don't log private authentication messages! - *.alert;auth.notice;authpriv.none -/dev/console + (plain-file "syslog.conf" "\ +# See info '(inetutils) syslogd invocation' for the documentation +# of the syslogd configuration syntax. - # Log anything (except mail) of level info or higher. - # Don't log private authentication messages! - *.info;mail.none;authpriv.none -/var/log/messages +# Log all error messages, authentication messages of +# level notice or higher and anything of level err or +# higher to the console. +# Don't log private authentication messages! +*.alert;auth.notice;authpriv.none -/dev/console - # Log \"debug\"-level entries and nothing else. - *.=debug -/var/log/debug +# Log anything (except mail) of level info or higher. +# Don't log private authentication messages! +*.info;mail.none;authpriv.none -/var/log/messages - # Same, in a different place. - *.info;mail.none;authpriv.none -/dev/tty12 +# Log \"debug\"-level entries and nothing else. +*.=debug -/var/log/debug - # The authpriv file has restricted access. - # 'fsync' the file after each line (hence the lack of a leading dash). - authpriv.* /var/log/secure +# Same, in a different place. +*.info;mail.none;authpriv.none -/dev/tty12 - # Log all the mail messages in one place. - mail.* -/var/log/maillog +# The authpriv file has restricted access. +# 'fsync' the file after each line (hence the lack of a leading dash). +authpriv.* /var/log/secure + +# Log all the mail messages in one place. +mail.* -/var/log/maillog ")) (define-record-type*