diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2023-04-18 21:32:11 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2023-04-21 16:16:37 +0200 |
| commit | 70677d882276ff44bc31d39e378749b976a9ca7d (patch) | |
| tree | 63831c7bcd986ea3633b674c704dbf3284219fed /gnu/services/rsync.scm | |
| parent | 0ac2ada05abdc15e6b9d78782df843fdc0a6fbd6 (diff) | |
services: rsync: Add 'configuration' action.
* gnu/services/rsync.scm (rsync-shepherd-service): Add 'actions' field.
Diffstat (limited to 'gnu/services/rsync.scm')
| -rw-r--r-- | gnu/services/rsync.scm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gnu/services/rsync.scm b/gnu/services/rsync.scm index d4569115631..aeb42750312 100644 --- a/gnu/services/rsync.scm +++ b/gnu/services/rsync.scm | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2017 Oleg Pykhalov <go.wigust@gmail.com> | 2 | ;;; Copyright © 2017 Oleg Pykhalov <go.wigust@gmail.com> |
| 3 | ;;; Copyright © 2021 Ludovic Courtès <ludo@gnu.org> | 3 | ;;; Copyright © 2021, 2023 Ludovic Courtès <ludo@gnu.org> |
| 4 | ;;; | 4 | ;;; |
| 5 | ;;; This file is part of GNU Guix. | 5 | ;;; This file is part of GNU Guix. |
| 6 | ;;; | 6 | ;;; |
| @@ -225,13 +225,15 @@ please use 'modules' instead~%"))) | |||
| 225 | (pid-file (rsync-configuration-pid-file config)) | 225 | (pid-file (rsync-configuration-pid-file config)) |
| 226 | (port-number (rsync-configuration-port-number config)) | 226 | (port-number (rsync-configuration-port-number config)) |
| 227 | (user (rsync-configuration-user config)) | 227 | (user (rsync-configuration-user config)) |
| 228 | (group (rsync-configuration-group config))) | 228 | (group (rsync-configuration-group config)) |
| 229 | (config-file (rsync-config-file config))) | ||
| 229 | (list (shepherd-service | 230 | (list (shepherd-service |
| 230 | (provision '(rsync)) | 231 | (provision '(rsync)) |
| 231 | (documentation "Run rsync daemon.") | 232 | (documentation "Run rsync daemon.") |
| 233 | (actions (list (shepherd-configuration-action config-file))) | ||
| 232 | (start #~(make-forkexec-constructor | 234 | (start #~(make-forkexec-constructor |
| 233 | (list (string-append #$rsync "/bin/rsync") | 235 | (list (string-append #$rsync "/bin/rsync") |
| 234 | "--config" #$(rsync-config-file config) | 236 | "--config" #$config-file |
| 235 | "--daemon") | 237 | "--daemon") |
| 236 | #:pid-file #$pid-file | 238 | #:pid-file #$pid-file |
| 237 | #:user #$user | 239 | #:user #$user |
