summaryrefslogtreecommitdiff
path: root/gnu/services/base.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/services/base.scm')
-rw-r--r--gnu/services/base.scm14
1 files changed, 4 insertions, 10 deletions
diff --git a/gnu/services/base.scm b/gnu/services/base.scm
index 0ccc6089771..31ae0cb9374 100644
--- a/gnu/services/base.scm
+++ b/gnu/services/base.scm
@@ -1708,17 +1708,11 @@ mail.* -/var/log/maillog
(requirement '(user-processes))
(actions
(list (shepherd-configuration-action syslog.conf)
- (shepherd-action
- (name 'reload)
- (documentation "Reload the configuration file from disk.")
- (procedure
- #~(lambda (pid)
- (if pid
- (begin
- (kill pid SIGHUP)
- (display #$(G_ "Service syslog has been asked to \
+ (shepherd-signal-action
+ 'reload SIGHUP
+ #:documentation "Reload the configuration file from disk."
+ #:message "Service syslog has been asked to \
reload its settings file.")))
- (display #$(G_ "Service syslog is not running."))))))))
;; Note: a static file name is used for syslog.conf so that the reload
;; action work as intended.
(start #~(make-forkexec-constructor