services: ntpd: Add 'configuration' action.

* gnu/services/networking.scm (ntp-shepherd-service): Add 'actions'
field.
This commit is contained in:
Ludovic Courtès 2023-03-27 09:43:43 +02:00
parent 82607c442b
commit 3b9738aeac
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -536,6 +536,7 @@ (define ntpd.conf
(provision '(ntpd))
(documentation "Run the Network Time Protocol (NTP) daemon.")
(requirement '(user-processes networking))
(actions (list (shepherd-configuration-action ntpd.conf)))
(start #~(make-forkexec-constructor
(list (string-append #$ntp "/bin/ntpd") "-n"
"-c" #$ntpd.conf "-u" "ntpd"