all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Oleg Pykhalov <go.wigust@gmail.com>
To: Remco van 't Veer <remco@remworks.net>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: add shepherd requirement to an existing service?
Date: Mon, 11 Mar 2024 21:59:28 +0300	[thread overview]
Message-ID: <87wmq8lhm7.fsf@gmail.com> (raw)
In-Reply-To: <87v85t112q.fsf@remworks.net> (Remco van t. Veer's message of "Mon, 11 Mar 2024 12:04:45 +0100")

[-- Attachment #1: Type: text/plain, Size: 1043 bytes --]

Hi,

Remco van 't Veer <remco@remworks.net> writes:

> 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.

> 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.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]

  reply	other threads:[~2024-03-11 20:03 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-11 11:04 add shepherd requirement to an existing service? Remco van 't Veer
2024-03-11 18:59 ` Oleg Pykhalov [this message]
2024-03-12 10:25   ` Remco van 't Veer
2024-03-14 17:54     ` Richard Sent
2024-03-15  9:22       ` Remco van 't Veer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wmq8lhm7.fsf@gmail.com \
    --to=go.wigust@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=remco@remworks.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.