mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
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
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue