diff options
Diffstat (limited to 'zones.d/global-templates/services.conf')
| -rw-r--r-- | zones.d/global-templates/services.conf | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/zones.d/global-templates/services.conf b/zones.d/global-templates/services.conf index 23c2a91..2b33cbe 100644 --- a/zones.d/global-templates/services.conf +++ b/zones.d/global-templates/services.conf @@ -55,6 +55,14 @@ apply Service "systemd" { assign where host.vars.init == "systemd" } +apply Service "needrestart" { + import "generic-service" + + check_command = "needrestart" + + assign where host.vars.kernel == "linux" +} + /* OS specific basic health checks */ apply Service "apt" { import "generic-service" |
