From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id yCZNMn8kE2QYAAAASxT56A (envelope-from ) for ; Thu, 16 Mar 2023 15:15:27 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id ME4TMn8kE2TAEAAAauVa8A (envelope-from ) for ; Thu, 16 Mar 2023 15:15:27 +0100 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 A2A6112FAB for ; Thu, 16 Mar 2023 15:15:27 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=dhk2M5yi; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678976127; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=pI9eXqMu3uccL5WdcZLYPM1aK8Ira6Qw9toIYqHCrcM=; b=jRuzCIuFZT117EjjRQsrekjJSqBo1/SBge2amCkGdnfs2tLiIx+TgPfjaGVUaqvcq/vihB 0b+jdBJJy4AnxXGb81ZBp6O+coBxMxFFeswXgyAARienVF7Jl0Q22XIkmdiUjaET/rFPqD HU9pD0MpLAdtQMezan5hbCZYfNKa0/mrDuxU1ehrxTd8afqcrjKRrhaWZ5ULcWrt/E5diy iNyKoACMlS8asx9gqSW8SZhsKwJd1CCNH42yFjkiHjhf2eG6+kdytZTHLfnjOHmNSp6MQ6 t/KHhmgMZco6lBeGu5OKmNx08mVuTQC2QWBVXMjDk0WR6FKlGctMiKh/qqMMNA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gnu.org header.s=fencepost-gnu-org header.b=dhk2M5yi; dmarc=pass (policy=none) header.from=gnu.org; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678976127; a=rsa-sha256; cv=none; b=JO036/r9fk52cv1RG1asMCzi/9ovQM9k1qMeq2Gr4zCzwN7WmrDI6CPi7dTxzHLHAFtIeU suqBJfi+RHTr3ss+toKBCWgQbf4a8DXV0jZi+h+4hNN/pnkkdBwHzJ7fWOVhCRt8MVk6sM dQQGWfV+RuqeVTwYRpK/pxB6jnPSg7j5pfsKQu08i3iiQwFa3DpDgH+3w2swUEU6LrOMQk c7gOpijEctAc2iEYkYy0vTIoFf8MEZXMSUmB/XV0Plae4iGqu8R5T1R9CoUZj8sTvYYzl2 OAcOF+BRz1GmEwLxk4HSBXqiyZ0Cj3hDOs2nbQ6KJpghTICS1TydmmPbgVSe9w== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pcoNd-0001vi-2B; Thu, 16 Mar 2023 10:14:57 -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 1pcoNb-0001vI-BL for guix-devel@gnu.org; Thu, 16 Mar 2023 10:14:55 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pcoNX-0000Z0-L8; Thu, 16 Mar 2023 10:14:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=pI9eXqMu3uccL5WdcZLYPM1aK8Ira6Qw9toIYqHCrcM=; b=dhk2M5yi2Tvul05WPfQu 0GGRolYfLBbX5TzWCRF0CNxAiQYjV79P8Pw3JdWDBHzLGNS27bbQJeQzYx9M0viYTSP58JSOhpUzi 7e0n0Z2YChaEzDuaa1lAe3T4vTE+Kg/TyxAvgwBlLeYK9u4RLuBcGFxgEBifaYFXmEA922bGixTFr hQksb5eVQH9zhL3uY50xl10GKbnVNAG4nkyO/wDrkBOaLgvEX7Kwl7GGOmiFDiK5V0R1h1jTQ2kEx U4wc84dmWrySYEj6aHNPIIZDpKbyiz9M5TtbQd+YtXVYfpUsjyC0F4lVCOgfC30wR1RTMxnzX5zgZ XmSpPC6XTGUoCg==; Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pcoNX-0001BN-4O; Thu, 16 Mar 2023 10:14:51 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Adam Faiz Cc: guix-devel@gnu.org Subject: Re: The =?utf-8?Q?=F0=9F=90=91?= Shepherd gets a service collection References: X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: Sextidi 26 =?utf-8?Q?Vent=C3=B4se?= an 231 de la =?utf-8?Q?R=C3=A9volution=2C?= jour du Pissenlit X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Thu, 16 Mar 2023 15:14:49 +0100 In-Reply-To: (Adam Faiz's message of "Mon, 13 Mar 2023 23:39:32 +0000") Message-ID: <874jqkeqau.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: X-Migadu-Queue-Id: A2A6112FAB X-Spam-Score: -9.56 X-Migadu-Spam-Score: -9.56 X-Migadu-Scanner: scn0.migadu.com List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-TUID: 0WEcxPvhPvRh Hi, Adam Faiz skribis: >> I imagine we could develop more convenient services like this, such >> as basic command scheduler similar to the =E2=80=98at=E2=80=99 command, = and a >> syslogd >> implementation. The latter could be nice for a couple of reasons: >> logging would happen from the start and till the end (an improvement >> over the external syslogd process), and it could let us provide a nicer >> user interface to view logs (taking inspiration from that of >> =E2=80=98journalctl=E2=80=99). >> Thoughts? Ideas?I don't think a command scheduler should be added >> to the Shepherd, isn't that what mcron does? > If mcron has any deficiencies for being used as an `at` command, then tha= t can be improved. The main limitation of mcron for such thing is that it=E2=80=99s entirely static: it reads a list of job specs upfront and then goes on to schedule them. There=E2=80=99s no communication protocol to talk to it and add/remove jobs on the fly, which is what =E2=80=98at=E2=80=99 would need. > Regarding syslogd, I think a better approach is to tell the services to s= end their output to stdout and stderror, > so that logs don't depend on a separate logging service in the first plac= e. Yes, but: 1. Some daemons include syslog support even today, sometimes optional, sometimes mandatory. 2. Syslog is a bit more structured than just stdout/stderr output: there are facilities and levels, for instance=E2=80=94see syslog(3); syslogd provides interesting filtering capabilities. > Per-service logging is already implemented in the Shepherd, but could be = streamlined to have a default logs directory: > https://skarnet.org/software/s6/s6-log.html#loggingchain Interesting read, thanks! Regarding the default logs directory, there=E2=80=99s /var/log already, or = did you mean something else? Thanks, Ludo=E2=80=99.