Issue #17554 has been updated by Josh Cooper.
Status changed from Investigating to Accepted
Keywords set to windows
Hi Aristarkh, so it looks to be a bad interaction between `run_mode`,
`settings` and the `config` face, see also #2935, #7316.
If the `runinterval` setting is in the agent section (as it should be), then
`puppet config print runinterval` won't "see" it. As a result, the puppet
service doesn't run every 300 seconds as you've specified.
If you move the `runinterval` setting to the `main` section, or in `C:\Program
Files (x86)\Puppet Labs\Puppet\service\daemon.rb` change the line to:
<pre>
runinterval = %x{ "#{puppet}" agent --configprint runinterval }.to_i
</pre>
Things should work as expected.
Also, for future reference, if you stop the puppet service and restart it with
the `--debug` flag:
<pre>
sc start puppet --debug
</pre>
In `%ProgramData%\PuppetLabs\puppet\var\log\windows.log`, you should see
something like:
<pre>
Mon Nov 12 15:02:02 -0800 2012 Puppet (notice): Starting service: --debug
Mon Nov 12 15:02:02 -0800 2012 Puppet (notice): Service running
Mon Nov 12 15:02:02 -0800 2012 Puppet (debug): Using 'C:/Program Files
(x86)/Puppet Labs/Puppet/bin/puppet.bat'
Mon Nov 12 15:02:13 -0800 2012 Puppet (debug): Process created: 2148
Mon Nov 12 15:02:13 -0800 2012 Puppet (debug): Service waiting for 300 seconds
</pre>
Note this file is only created when the service starts in debug mode.
----------------------------------------
Bug #17554: runinterval ignored on Windows
https://projects.puppetlabs.com/issues/17554#change-76268
Author: Aristarkh Zagorodnikov
Status: Accepted
Priority: Normal
Assignee:
Category: windows
Target version:
Affected Puppet version: 3.0.1
Keywords: windows
Branch:
<pre>
%ProgramData%\PuppetLabs\puppet\etc\puppet.conf:
...
[agent]
runinterval=300
</pre>
Restarting service.
Testing the configured run interval:
<pre>
cd <puppet bin directory>
puppet agent --configprint runinterval
300
</pre>
Then I check both the puppetmaster logs and the client event log -- it still
runs every 30 minutes.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.