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:
parent
29091731a0
commit
1059c2bb66
@ -392,6 +392,7 @@ configuration file."))
|
|||||||
(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 @@ configuration file."))
|
|||||||
"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)
|
||||||
|
Loading…
Reference in New Issue
Block a user