summaryrefslogtreecommitdiff
path: root/gnu/services/syncthing.scm
diff options
context:
space:
mode:
authorAdam Maleszka <adam_maleszka@aol.com>2023-09-04 14:25:23 +0200
committerLudovic Courtès <ludo@gnu.org>2023-09-17 15:31:03 +0200
commit944c1b62a1b36d6383b8e902f1a4abbee0165e34 (patch)
tree402e662808db7c23e67a2e78a1569b7d7c9eba26 /gnu/services/syncthing.scm
parentdb014e394e4fe256d2413d8316c85119828dc2f2 (diff)
services: syncthing: Ensure that service runs after mounting home directories.
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 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/services/syncthing.scm')
-rw-r--r--gnu/services/syncthing.scm2
1 files changed, 1 insertions, 1 deletions
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 @@
(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"