- From: "Jason J. W. Williams" <
>
- To:
- Subject: [chef] Service restarts on every Chef check-in.
- Date: Mon, 13 Jun 2011 18:19:21 -0600
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=lQ6vKdVbCX0g0LWittyIe0/dO+KtecCbwDY2v/vgnOtakfw4eutfQA9jURdfA6Eke7 TOkq+7HB5HfbnktJSX2ls9QhuotbvA65RVbNgLOa8kkOOnkwYJ0NpKcH7nMCvEc7mzeV e7s29YLZNXMDq6NNzSzOb4UrH0v/kPHlI0vdo=
I've been noticing that at least one of my cookbooks is causing the
associated service to be restarted everytime chef runs. None of the
config files that trigger "notifies" are being changed and the Chef
logs confirm that. The only thing that seems to be triggering the
restart is:
service "programname" do
action [:enable, :start]
supports :restart => true
end
In the logs:
[Tue, 14 Jun 2011 00:14:27 +0000] INFO: Processing
service[programname] action enable (programname::default line 86)
[Tue, 14 Jun 2011 00:14:27 +0000] INFO: Processing
service[programname] action start (programname::default line 86)
The service is restarting properly, but interrupting active sessions
every 15 minutes is not acceptable. How can I keep Chef from
restarting the process unless something has changed?
-J
- [chef] Service restarts on every Chef check-in., Jason J. W. Williams, 06/13/2011
Archive powered by MHonArc 2.6.16.