From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id GC1aAQVbjF/YTwAA0tVLHw (envelope-from ) for ; Sun, 18 Oct 2020 15:11:01 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id aHbFOARbjF8tQQAAbx9fmQ (envelope-from ) for ; Sun, 18 Oct 2020 15:11:00 +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 97DCF9403A6 for ; Sun, 18 Oct 2020 15:11:00 +0000 (UTC) Received: from localhost ([::1]:41550 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kUA3x-0005FO-8S for larch@yhetil.org; Sun, 18 Oct 2020 10:53:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42654) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUA3o-0005DN-Jx for help-guix@gnu.org; Sun, 18 Oct 2020 10:53:24 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:46905) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kUA3m-0004lN-EQ for help-guix@gnu.org; Sun, 18 Oct 2020 10:53:24 -0400 Received: from divoplade.home (lfbn-lyo-1-15-111.w86-202.abo.wanadoo.fr [86.202.110.111]) (Authenticated sender: d@divoplade.fr) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 7221A240006; Sun, 18 Oct 2020 14:53:18 +0000 (UTC) Message-ID: <827aaf9922289ecec2233540e99e09896946846a.camel@divoplade.fr> Subject: Re: How do you define a service? From: divoplade To: Julien Lepiller , help-guix@gnu.org Date: Sun, 18 Oct 2020 16:53:17 +0200 In-Reply-To: References: <69eea6b79a4850a66adc24a067ebba0d98c33c58.camel@divoplade.fr> <84f1892bab3645699c82a64ae313bd367bfe947d.camel@divoplade.fr> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=217.70.178.230; envelope-from=d@divoplade.fr; helo=relay10.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/18 10:53:19 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -0.01 X-TUID: iFjdJq1e3Vi/ Thank you for your responses. I reduced down the problem further. The following program, as run in a service, creates an *empty* file "/tmp/wtf", and runs for a minute: (format (open-output-file "/tmp/wtf") "WTF???\n") (sleep 60) The following program, as run in the same condition, create an *empty* file and fails immediately: (with-output-to-file "/tmp/wtf" (display "WTF???\n")) (sleep 60) So I think the question is rather, whether Guile can actually work in a shepherd forkexec environment: I guess the standard ports are closed, so maybe guile panics when it is time to flush the data, even if the ports are redirected. Do you have an example of a service written in guile that works in this context? Best regards, divoplade