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 KInXA3C0D2SanQAASxT56A (envelope-from ) for ; Tue, 14 Mar 2023 00:40:32 +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 aOPiA3C0D2SqLAAAauVa8A (envelope-from ) for ; Tue, 14 Mar 2023 00:40:32 +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 D952B4880 for ; Tue, 14 Mar 2023 00:40:31 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbrlr-0000Wi-DI; Mon, 13 Mar 2023 19:40:04 -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 1pbrlb-0008Vf-32 for guix-devel@gnu.org; Mon, 13 Mar 2023 19:39:55 -0400 Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pbrlY-0003Xn-6M; Mon, 13 Mar 2023 19:39:45 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id DB1C444554; Tue, 14 Mar 2023 00:39:37 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wHrUMUE-wlr7; Tue, 14 Mar 2023 00:39:36 +0100 (CET) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1678750776; bh=5/BssnA240Wjv8Bx+yXYFg2SMxwqkTFHX04gQ9//QZ0=; h=Date:To:Subject:Cc:From; b=Oau8o1RrY2p1P3YgVUMGkDyDw8AzwtSzRUncikoNUtqauXaeH7SytwmSeQurvTyGC 4uqheqHoCDhvNOrZnuZn8gQdT6RQZNP7IXO72AqYfhDpXfhIycRHWe7XqwNW6wZGQv /HuEUDEOVlL3/9LZdQtEVU67bUuS3C6qjBavaC5PzbzqbVTf9rxSO4/LBE2FkDZumR +9wWySbvZGdo+R8APv/HlxHSvarzuE3BCZCs7pOllDJv7boIgu43GEhT1Jwqe9e4zL lVJ4d41bqPShOu9oPl8+NqgSbHoHyjTr0ihQUBpeJTtADVKNu+8jg1T8+hMhOD3vMJ 3TA4WZtUz2GpA== Date: Mon, 13 Mar 2023 23:39:32 +0000 MIME-Version: 1.0 To: ludo@gnu.org Subject: =?UTF-8?Q?Re=3a_The_=f0=9f=90=91_Shepherd_gets_a_service_collection?= Content-Language: en-US Cc: guix-devel@gnu.org From: Adam Faiz Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=178.21.23.139; envelope-from=adam.faiz@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=Oau8o1Rr; 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"; dmarc=pass (policy=reject) header.from=disroot.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1678750831; a=rsa-sha256; cv=none; b=cXmDtWsF93FZFCCJj7CPUkCIFQErnc4n4MIdwGehMb2C+PmHMit4TyDe+zjKOVG2PVNdJx JUnPa4Z1YcR5dRf6Sh4NfNR5hFJWer1xTQWsiDf3oIPkyQy39yy6W1HKUFFHaCf9Hib750 CNIz+o/SQ2UioplJThBjxNEybegejsPJNn/y+sQnpeFHFiF2M+FIRodFwzFu47K1ZqiiLa ieCrjWNTaDkUY6qUbD5N0AbJNKC+xyq7z3TCT5SJg0YI7U9YViJNuJWrvzIL8hYfvhTCj+ 2Tq1EU6Q3KJ+aRQpS7lXLcoBlxUcVmJWNqxb1F+38Ad4oqKNllhtfbXILirgSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1678750831; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=JMQygwRbUv93c6ip9BKUMjaMYFla2MwqSxALMCjxzTY=; b=a9hy+STQgv7A3bHQOIuexCcqIZ3+T7eGHS369Jkeov8J+rvPenvInUK4IE7nv3mre/CZak CB1nFJ/Daub6OWOLZxbB3ruicFAXA1wbXI+DVKGEHElrnNgUHseKrrBjZrMvzY0XhCgQ5r RTvxWMP9KzMJzYDe55KnX3zqIh0W034esQ2aUZScWXQ+c7LxvnZ2yc6inRjtmU0NLfRK09 KJFc3QYtVFy58DPxcVwG5pEr+IVK5W3utspTGqnxwBs2ByluhKVjGqf8CT2+JnbdbdlJci SWzLpJnDgbbvKjbU+MeTO8KQt2aG5SWPV8umri35ioVYNi5H4PofUbStA36KYA== X-Migadu-Spam-Score: -5.45 X-Spam-Score: -5.45 X-Migadu-Queue-Id: D952B4880 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=disroot.org header.s=mail header.b=Oau8o1Rr; 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"; dmarc=pass (policy=reject) header.from=disroot.org X-TUID: 562JBt2a38GV > I imagine we could develop more convenient services like this, such as > basic command scheduler similar to the ‘at’ 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 > ‘journalctl’). > > 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 that can be improved. Regarding syslogd, I think a better approach is to tell the services to send their output to stdout and stderror, so that logs don't depend on a separate logging service in the first place. 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 I'm already happy with zless/any GUI log viewer, but it would be great to have a nicer user interface to view logs nonetheless.