services: zabbix: Add requirement on 'user-processes'.

This ensures the services does not start before mounts are up.
Reported by rekado on #guix.

* gnu/services/monitoring.scm (zabbix-server-shepherd-service,
zabbix-agent-shepherd-service)[requirement]: New field.
This commit is contained in:
Marius Bakke 2022-02-17 18:08:39 +01:00
parent 29091731a0
commit 1059c2bb66
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -392,6 +392,7 @@ (define (zabbix-server-shepherd-service config)
(config-file (zabbix-server-config-file config))) (config-file (zabbix-server-config-file config)))
(list (shepherd-service (list (shepherd-service
(provision '(zabbix-server)) (provision '(zabbix-server))
(requirement '(user-processes))
(documentation "Run the Zabbix server daemon.") (documentation "Run the Zabbix server daemon.")
(actions (zabbix-server-actions zabbix-server config-file)) (actions (zabbix-server-actions zabbix-server config-file))
(start #~(make-forkexec-constructor (start #~(make-forkexec-constructor
@ -516,6 +517,7 @@ (define (zabbix-agent-shepherd-service config)
"Return a <shepherd-service> for Zabbix agent with CONFIG." "Return a <shepherd-service> for Zabbix agent with CONFIG."
(list (shepherd-service (list (shepherd-service
(provision '(zabbix-agent)) (provision '(zabbix-agent))
(requirement '(user-processes))
(documentation "Run Zabbix agent daemon.") (documentation "Run Zabbix agent daemon.")
(start #~(make-forkexec-constructor (start #~(make-forkexec-constructor
(list #$(file-append (zabbix-agent-configuration-zabbix-agent config) (list #$(file-append (zabbix-agent-configuration-zabbix-agent config)