# File lib/puppet/network/client.rb, line 169 169: def start 170: # Create our timer. Puppet will handle observing it and such. 171: timer = Puppet.newtimer( 172: :interval => Puppet[:runinterval], 173: :tolerance => 1, 174: :start? => true 175: ) do 176: begin 177: self.runnow if self.scheduled? 178: rescue => detail 179: puts detail.backtrace if Puppet[:trace] 180: Puppet.err "Could not run client; got otherwise uncaught exception: %s" % detail 181: end 182: end 183: 184: # Run once before we start following the timer 185: self.runnow 186: end