diff options
-rw-r--r-- | oni/home/services/syncthing.scm | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/oni/home/services/syncthing.scm b/oni/home/services/syncthing.scm index 821f813..eee8d23 100644 --- a/oni/home/services/syncthing.scm +++ b/oni/home/services/syncthing.scm @@ -25,13 +25,12 @@ (provision '(syncthing)) (auto-start? #t) (start - #~(make-system-constructor - #$(file-append (home-syncthing-configuration-package config) "/bin/syncthing-gtk") - " --minimized")) + #~(make-forkexec-constructor + (list #$(file-append (home-syncthing-configuration-package config) "/bin/syncthing-gtk") + "--minimized" + #:log-file (format #f "~a/.local/var/log/syncthing.log" (getenv "HOME"))))) (stop - #~(make-system-destructor - #$(file-append (home-syncthing-configuration-package config) "/bin/syncthing-gtk") - " --quit"))))) + #~(make-kill-destructor))))) (define home-syncthing-service-type (service-type |