diff options
Diffstat (limited to 'zones.d/global-templates')
| -rw-r--r-- | zones.d/global-templates/services.conf | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/zones.d/global-templates/services.conf b/zones.d/global-templates/services.conf index 9081f19..825b9fe 100644 --- a/zones.d/global-templates/services.conf +++ b/zones.d/global-templates/services.conf @@ -55,3 +55,18 @@ apply Service "apt" { assign where host.vars.os_family == "debian" } + +/** + * Serice health checks + */ + +apply Service "pgsql" { + import "generic-service" + + check_command = "pgsql" + + vars.pgsql_hostname = "/run/postgresql" + vars += host.vars.pgsql + + assign where host.vars.pgsql != "" +} |
