From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id EbqEGYuKlGH3mAAAgWs5BA (envelope-from ) for ; Wed, 17 Nov 2021 05:52:27 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id UNMsFIuKlGG2FQAA1q6Kng (envelope-from ) for ; Wed, 17 Nov 2021 04:52:27 +0000 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 E62A09F29 for ; Wed, 17 Nov 2021 05:52:26 +0100 (CET) Received: from localhost ([::1]:57214 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mnCvq-0002EZ-0b for larch@yhetil.org; Tue, 16 Nov 2021 23:52:26 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34920) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mnCvc-0002ER-EB for guix-devel@gnu.org; Tue, 16 Nov 2021 23:52:12 -0500 Received: from [2607:f8b0:4864:20::d2b] (port=33695 helo=mail-io1-xd2b.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mnCvZ-0006cx-Q3 for guix-devel@gnu.org; Tue, 16 Nov 2021 23:52:11 -0500 Received: by mail-io1-xd2b.google.com with SMTP id m9so1548814iop.0 for ; Tue, 16 Nov 2021 20:52:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:subject:date:message-id:user-agent:mime-version; bh=3q5JGb+H/2OSmJIGst/FS5NZcOrS6d+MjnN2yA9w0cA=; b=nqZvFPN1V0AuBWLe/yR4sg3YN4ZZpWbDgZJjvvjJ3Ec9QFsmmqqIg6ZHMHJXNmEhNe Cdwk2pMqod5aTTlgcvkz29FegBrEogjlOB/15jZ4tIxe5rE2nEU4aNAfFxa9UHdEVakD Q15EttR5fcJiFgyGotf4YVE4Zpyi1pOgBBqhXfepXk9rMGXJTBcSho4QLDwJFLRXI6G8 hChX0OdNgmEdK/x8wMf3/OGbnXUEfwpJHAKWE2+LsRbGA6mbkruHTtsPePuBODJSW/VG Sux2cVCeFAueOc8dS/rhjgX0Nyxn7lOl265GqN+ThHnJBmOmOFWvLZpFP6feoOtOiaVf cC4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version; bh=3q5JGb+H/2OSmJIGst/FS5NZcOrS6d+MjnN2yA9w0cA=; b=xQYw7OtiMX1zREvf/XR13WSmC6QtAZM+aS3JIU8xeYoC3CvvLayo/HdEhQPg7oW1rZ sixUvzBy1fE1vNKxiGCfuMyV1p0dyXExR5kiVtf7TBYlM/FB7MyMGjNDLhUPU4c0dzaL 2S98UKsQHTpLadysg2GvwYB/KUZJfvLY56uxsoTMoqjHYzHBHwF8MbGh0wlfiww8kKnR KxrhGhyQwG61oL4OMSxMTbV9v8KUHoUF4gL8Iz6w///YXErK3bJcxEY8ui9xr4bDWBZ6 v0Q48gMPl/M4MYw/jkGSuTGMgOla9InLnbhyQNRMcd0CyAsdKZxlW+XMEWysxAMidA3U gaPg== X-Gm-Message-State: AOAM532XPIFcT5JfPr+MtcModSE+0fVVqnJvpoULixdQULcRYvDRb4bL A57cClqy67rzygQqjp2Y0MTO+H46sKk= X-Google-Smtp-Source: ABdhPJyuSxch3TzybdvKVgiVrI5gzxtCwUxicTAM00LyxY0zGiRAxaclsaNgrMevolCjsxcxQhDblg== X-Received: by 2002:a05:6638:1138:: with SMTP id f24mr10374554jar.58.1637124728511; Tue, 16 Nov 2021 20:52:08 -0800 (PST) Received: from washu-v4 (172-221-246-205.res.spectrum.com. [172.221.246.205]) by smtp.gmail.com with ESMTPSA id q20sm10852643iob.42.2021.11.16.20.52.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Nov 2021 20:52:08 -0800 (PST) From: Katherine Cox-Buday To: Guix Devel Subject: Guix services, logging, and log rotation Date: Tue, 16 Nov 2021 22:52:06 -0600 Message-ID: <87bl2jwfih.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::d2b (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::d2b; envelope-from=cox.katherine.e@gmail.com; helo=mail-io1-xd2b.google.com X-Spam_score_int: 3 X-Spam_score: 0.3 X-Spam_bar: / X-Spam_report: (0.3 / 5.0 requ) AC_FROM_MANY_DOTS=1.571, BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1637124747; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=3q5JGb+H/2OSmJIGst/FS5NZcOrS6d+MjnN2yA9w0cA=; b=LQ0nLzQjzBrscE5Q/WLGjQDw7fq6pR+Bcg/LFp1WzZ7bBRaL7IZs5OiA+HvWBjZ6BPoUNq NOUyWpSH/15qxHrlViCvmBN9V9Z7bLWV+xyPvBpnsj7U0JH3ESEFfAUTr5+UDQbB3e9UTA c5qXig/58FgXRQ/gRMXC5B/Y7XB8QQsAGA1wNC8IZVCmMPncZ2c6Wi3+mBWLOvKUMY+04Q F1Z0BaRZqAoKJYOwXRDrX7GuLx2uCsFvdTvqvXFFMU2V+J9JNQiBijXv168JB+wLjip+CE PB1kDUYg7yQ6b4s/hHl9m1is0zoamObPx2WpdRUkQpVg+T3AyHbmkS+qMviOqA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1637124747; a=rsa-sha256; cv=none; b=aCdvyej04cZXzghyIxvUTfempfouXhgD2yNXnLc0c5zIVmPWD/DpSUuHuZeTOqs+UHoI4s +c3V5cP9aLvyeqDrwM1FvskpPYl2JmfKbqk4nctGY28VtA90Ak+kgDqY2AffKQerMB7d+k thtcyQoQdnJaoPaEhgB9BLFDa8423wAaRQt4oAfuv/wIK4TwJDmO2iLlrK/ZcgTtoGcuF3 AdD6IFzw4jAivLv9BUg6m6v0i8Pf9Cdz/nZVGNhqf4lgzZ9f+b7ztNPWZzGTTqIFF01THF qgOzfp73JbLeK8QrhQrBpykaqjTz9E9+yXJGQytae5m3QTCPwZUkGYrIepiKXw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=nqZvFPN1; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.55 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=nqZvFPN1; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: E62A09F29 X-Spam-Score: -3.55 X-Migadu-Scanner: scn0.migadu.com X-TUID: lhHgFienzDq/ Hey Guix! I'm slowly working on contributing rsyslog with a Guix service. I have just arrived at trying to allow the user to specify where the Shepherd service sends its log file, and I began thinking about log rotation. In the manual, SS10.8.3, it says: > (usually, services that produce log files already take care of that) I found an excellent example in =hpcguix-web-service-type=. It looks like you can achieve this by extending the =rottlog-service-type=? #+BEGIN_SRC scheme (define hpcguix-web-service-type (service-type (name 'hpcguix-web) (description "Run the hpcguix-web server.") (extensions (list (service-extension account-service-type (const %hpcguix-web-accounts)) (service-extension activation-service-type (const %hpcguix-web-activation)) (service-extension rottlog-service-type (const %hpcguix-web-log-rotations)) (service-extension shepherd-root-service-type (compose list hpcguix-web-shepherd-service)))))) #+END_SRC However, I noticed not all services allow users to specify where log files go, or setup log rotation. E.g.: #+BEGIN_SRC scheme (define syncthing-service-type (service-type (name 'syncthing) (extensions (list (service-extension shepherd-root-service-type syncthing-shepherd-service))) (description "Run @uref{https://github.com/syncthing/syncthing, Syncthing} decentralized continuous file system synchronization."))) #+END_SRC Are these bugs? Why don't all services allow you to specify where logs go? I guess if no log location is specified, it just goes in the master shepherd log which is rotated? Thank you, -- Katherine