aboutsummaryrefslogtreecommitdiff
path: root/gnu/services/monitoring.scm
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2022-02-17 18:08:39 +0100
committerMarius Bakke <marius@gnu.org>2022-02-17 18:13:16 +0100
commit1059c2bb66cca89c7619e595502e3e17f1aa1c81 (patch)
tree26319641535833d1d7e44cdf94eca0f8f5254c10 /gnu/services/monitoring.scm
parent29091731a0c6cb649cdfd72297575fe2bb2a9591 (diff)
downloadguix-1059c2bb66cca89c7619e595502e3e17f1aa1c81.tar
guix-1059c2bb66cca89c7619e595502e3e17f1aa1c81.tar.gz
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.
Diffstat (limited to 'gnu/services/monitoring.scm')
-rw-r--r--gnu/services/monitoring.scm2
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/services/monitoring.scm b/gnu/services/monitoring.scm
index 92c49c513b..0e6aed2cac 100644
--- a/gnu/services/monitoring.scm
+++ b/gnu/services/monitoring.scm
@@ -392,6 +392,7 @@ configuration file."))
(config-file (zabbix-server-config-file config)))
(list (shepherd-service
(provision '(zabbix-server))
+ (requirement '(user-processes))
(documentation "Run the Zabbix server daemon.")
(actions (zabbix-server-actions zabbix-server config-file))
(start #~(make-forkexec-constructor
@@ -516,6 +517,7 @@ configuration file."))
"Return a <shepherd-service> for Zabbix agent with CONFIG."
(list (shepherd-service
(provision '(zabbix-agent))
+ (requirement '(user-processes))
(documentation "Run Zabbix agent daemon.")
(start #~(make-forkexec-constructor
(list #$(file-append (zabbix-agent-configuration-zabbix-agent config)