From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id QEyoAu8t8GWopAAA62LTzQ:P1 (envelope-from ) for ; Tue, 12 Mar 2024 11:26:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id QEyoAu8t8GWopAAA62LTzQ (envelope-from ) for ; Tue, 12 Mar 2024 11:26:55 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=remworks.net header.s=fm3 header.b=z6vd69QA; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=ay1P1Owr; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710239215; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=aJMLALn8SIQOuVIBdLhxVMMa3eEjOVHT0ixnI7lPYNI=; b=oQin/J3K9b65CacAKs1NsCw/z8X4FYIe5xmyGmUbfGQZCazjvZnYUQ4m+1mtnjPGJyUwBC Kyjp6zcrA49t3Ht+FIb3x568OGAX61VwwMrQi+PVomhTZ1sr69EQyxywohGD51eGLDzKM4 uXFcAX9kpIu78DPOvcQsf1aB7KPMlpdLCYEFdnyBvizkmhEww08mQhdmRNBWoX7zncBOF7 41BuJqjEGGq0uphVxej7B6BWSp0dlEEmQZ/7dV8hLTavQ8cwgOAP2viPFTngJ7jsQEbW6j PSw27DjKXa95LU+UmVP7kcs9M0rdn6R86T7ZEVO6lHQtLeeOh9KB6g/4ZPkfLg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710239215; a=rsa-sha256; cv=none; b=uFiv18JAPz2uO2J2Y5sybTYXZCQjrl/rbwRH2BhRWfvf4AwYn88vXTqBfsBFFsZpOKkLkO g62l8wIpIR9BJ0g7KEGskAW7WJ1V0sgp2h5CB7VCiSIOdqkoAQbEnt8/SJhB3PUJy+wPEZ 7XF873YROTeQ7HI0h2jbDpC6lOTqWbJ8QAiMrSIDsQ7mLsJMuEoGqucIMEpm+HeVBfuPjV bQXxeg8Ur7LQalk9C/hMB/oz8C8TKxwHWq770JEZBWWnnpaIldIX/AZTQ1IatO6t6OMbfo vTWvP53eAYZX3433rrKMN1CBY+Eu0VNDxCA1x2Oj55LeCiKPQWZiNAtal6PyIg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=remworks.net header.s=fm3 header.b=z6vd69QA; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=ay1P1Owr; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none 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 9E6BB4297E for ; Tue, 12 Mar 2024 11:26:54 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rjzLA-0007Pz-Ac; Tue, 12 Mar 2024 06:26:37 -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 1rjzKC-0007HQ-PP for help-guix@gnu.org; Tue, 12 Mar 2024 06:25:39 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rjzK0-0005NB-Sk for help-guix@gnu.org; Tue, 12 Mar 2024 06:25:34 -0400 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id A8E1A5C006D; Tue, 12 Mar 2024 06:25:21 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute5.internal (MEProxy); Tue, 12 Mar 2024 06:25:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=remworks.net; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1710239121; x=1710325521; bh=aJMLALn8SI QOuVIBdLhxVMMa3eEjOVHT0ixnI7lPYNI=; b=z6vd69QAB9lsQnm49n/Sl1r9dn OCC5BpM8NTLAgAQXnM2pLOJAWl2De1KwR/kCalc6vcxbDBvmk6FTvdZhmNAsbDVV 2aEpDTCT0gK3IbtkUr/97uR/k+rjZ8gMnUErBgSGOUrx8Se7KmqhZqV9AF7jSzRP FziQmGKbmALa7/ojGPC5upcwvo4/2Imkmui4TPOYCosmP5jBJ0FpLPUTxlp7hkN8 +sgUFAHfueNCbgvcv1rv6sj5iD66T+JQwmBg8QtcB5SnaqbJIur2bYqMctTpJ0Qd 0wFAid3RvR+9RklO4/Mxm/w9nExnouUEyVYrcP0b25VCXT3liCGDzK/YnzyQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1710239121; x=1710325521; bh=aJMLALn8SIQOuVIBdLhxVMMa3eEj OVHT0ixnI7lPYNI=; b=ay1P1Owrfyt7N1a+QyHDgsQgbDNjsT9z5xGP3tqEZjIi alqXX3gSed7T28QRmwCRvsljggiBf2Ie8zm0Nxr8eqMdD09YfQu0M6KzUHuCB1m8 cb0/2ZBRmya/YDLUEhbjI826awfrjralHF08n2ck5lrDTC4oFcQvcL9sAMAEkj5l dplquhzA1Zonld7F5kt3uscdJNxX+iOAtEOw4JYhWhiWgd0DdU8F32n1nSZJpt2V 37CzrnTrjcWBydfF79KEBcJqT04as/CKJhJDQ2/xrWKUi0FG+gZmXa0Xq0muqSxk fqyD6L7aAWqI+ob+jx12zkqHKVmW/fIBL1Q9ZBQpiQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrjeefgdduiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfhgfhffvvefujgffkfggtgesthdtre dttdertdenucfhrhhomheptfgvmhgtohcuvhgrnhcukdhtucggvggvrhcuoehrvghmtgho sehrvghmfihorhhkshdrnhgvtheqnecuggftrfgrthhtvghrnhepkeduveegfedufeelhe dvuedvhfeufedtteevkeehhfeigfevlefhgeeukedtfeevnecuvehluhhsthgvrhfuihii vgeptdenucfrrghrrghmpehmrghilhhfrhhomheprhgvmhgtohesrhgvmhifohhrkhhsrd hnvght X-ME-Proxy: Feedback-ID: if0694934:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 12 Mar 2024 06:25:20 -0400 (EDT) References: <87v85t112q.fsf@remworks.net> <87wmq8lhm7.fsf@gmail.com> User-agent: mu4e 1.10.8; emacs 29.1 From: Remco van 't Veer To: Oleg Pykhalov Cc: help-guix Subject: Re: add shepherd requirement to an existing service? In-reply-to: <87wmq8lhm7.fsf@gmail.com> Date: Tue, 12 Mar 2024 11:25:18 +0100 Message-ID: <878r2n21dd.fsf@remworks.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=66.111.4.25; envelope-from=remco@remworks.net; helo=out1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.49 X-Spam-Score: -5.49 X-Migadu-Queue-Id: 9E6BB4297E X-Migadu-Scanner: mx11.migadu.com X-TUID: ItUnP9H0kF23 Hi Oleg, 2024/03/11, Oleg Pykhalov: >> I'd like to add a shepherd requirement to an existing service, as >> provided by guix, to prevent it from starting before some other service >> starts. >> >> For exampple: I have NAS which is very slow to start after a power >> failure so I created a simple service to keep trying to mount an NFS >> share until it succeeds. This share contains files shared through >> syncthing, so I want syncthing to start after the NFS service is >> started. > > How do you mount the NFS share? From my understanding, system services > typically wait for all mounts listed in 'file-systems' to be mounted > unless 'mount?' is specifically set to false. I tried the file-systems declaration about a year ago but found it didn't work all the time when automatically booting after a power failure. There's also routers and stuff booting at the same time so the order of things may have been an issue. Anyway, a simple service trying to mount until it succeeds works pretty reliably. >> Is there any way to do this apart from defining my own >> syncthing-shepherd-service which includes the extra shepherd >> requirement? > > To my knowledge, unless the service definition explicitly allows for it, > there may not be an alternative approach aside from creating a custom > syncthing-shepherd service that incorporates the additional shepherd > requirement. I was afraid so. There may be other situations where I'd like some home grown service to startup before another pre-existing one, so maybe this should be a feature request, if others are also running into this.