zuazo / spamassassin-cookbook

Chef cookbook to install and configure SpamAssassin.

Home Page:https://supermarket.chef.io/cookbooks/onddo-spamassassin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spamassassin is restarting after each modification even if spamd is disabled

nicutor opened this issue · comments

Cookbook Version

2.1.0

Chef Client Version

Chef: 14.10.9

Platform Details

CentOS 7

If node['spamassassin']['spamd']['enabled'] = false, the spamassassin is still restarting after any modification.

Can you fix it by adding something like this each time service[#{service_name}] is notified?

notifies :restart, "service[#{service_name}]" if node['spamassassin']['spamd']['enabled']

Thank you.