changeset 270:481acc395876

Mask "clamav@amavisd" service to save memory Amavisd will scan using the binary each time, not a service. Without this, Clam chews memory, runs out and keeps restarting. This must have been configured manually on the old server.
author IBBoard <dev@ibboard.co.uk>
date Tue, 31 Dec 2019 13:49:02 +0000
parents 670e933bbd63
children c62728474654
files manifests/templates.pp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/manifests/templates.pp	Mon Dec 30 17:00:10 2019 +0000
+++ b/manifests/templates.pp	Tue Dec 31 13:49:02 2019 +0000
@@ -739,6 +739,10 @@
 		ensure => 'running',
 		enable => 'true',
 	}
+	service { 'clamd@amavisd':
+		ensure => 'stopped',
+		enable=> 'mask',
+	}
 	file { '/etc/amavisd/amavisd.conf':
 		ensure => present,
 		source => 'puppet:///private/postfix/amavisd.conf',