all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#65731] [PATCH] services: syncthing: ensure that service runs after mounting home directories
       [not found] <87il8q3z2k.fsf.ref@aol.com>
@ 2023-09-04 12:25 ` Adam Maleszka via Guix-patches via
  2023-09-17  9:56   ` bug#65731: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Adam Maleszka via Guix-patches via @ 2023-09-04 12:25 UTC (permalink / raw)
  To: 65731

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


Sometimes `syncthing-service-type' fails during startup because it tries
to read configuration files from the user's home directory:

Failure on home directory: mkdir /home/xyz/.config: permission denied

This patch adds `user-processes' to the shepherd service requirements to
ensure that `user-homes' is fired before `syncthing' tries to read data
from the home directory.

* gnu/services/syncthing.scm (syncthing-shepherd-service): add
`user-processes' to requirements

---
 gnu/services/syncthing.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnu/services/syncthing.scm b/gnu/services/syncthing.scm
index 2f7c822827..9bb623186b 100644
--- a/gnu/services/syncthing.scm
+++ b/gnu/services/syncthing.scm
@@ -63,7 +63,7 @@ (define syncthing-shepherd-service
                      (list (string->symbol
                             (string-append "syncthing-" user)))))
       (documentation "Run syncthing.")
-      (requirement (if home-service? '() '(loopback)))
+      (requirement (if home-service? '() '(loopback user-processes)))
       (start #~(make-forkexec-constructor
                 (append (list (string-append #$syncthing "/bin/syncthing")
                               "--no-browser"
-- 
2.41.0

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#65731: [PATCH] services: syncthing: ensure that service runs after mounting home directories
  2023-09-04 12:25 ` [bug#65731] [PATCH] services: syncthing: ensure that service runs after mounting home directories Adam Maleszka via Guix-patches via
@ 2023-09-17  9:56   ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2023-09-17  9:56 UTC (permalink / raw)
  To: Adam Maleszka; +Cc: 65731-done

Hi,

Adam Maleszka <adam_maleszka@aol.com> skribis:

> Sometimes `syncthing-service-type' fails during startup because it tries
> to read configuration files from the user's home directory:
>
> Failure on home directory: mkdir /home/xyz/.config: permission denied
>
> This patch adds `user-processes' to the shepherd service requirements to
> ensure that `user-homes' is fired before `syncthing' tries to read data
> from the home directory.
>
> * gnu/services/syncthing.scm (syncthing-shepherd-service): add
> `user-processes' to requirements

Applied, thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-17 10:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <87il8q3z2k.fsf.ref@aol.com>
2023-09-04 12:25 ` [bug#65731] [PATCH] services: syncthing: ensure that service runs after mounting home directories Adam Maleszka via Guix-patches via
2023-09-17  9:56   ` bug#65731: " Ludovic Courtès

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.