Issue #3553 has been updated by Peter Meier.

James Turnbull wrote:
> You haven't specified a time?  I think that's a mandatory attribute for the 
> cron resource.

Well then at least the documentation is wrong:
<pre>
All fields except the command and the user are optional, although specifying no 
periodic fields would result in the command being executed every minute. 
</pre>

http://docs.puppetlabs.com/guides/types/cron.html
----------------------------------------
Bug #3553: Cron Issue
http://projects.puppetlabs.com/issues/3553

Author: Darvin Denmian
Status: Needs more information
Priority: Normal
Assigned to: 
Category: cron
Target version: 
Affected version: 0.25.4
Keywords: 
Branch: 


Adding the following entry to a file :

cron { "app":
    command     => "nice -n -10 
/usr/bin/php/var/www/public_html/rotinas/rotinas.php 2>&1>> /var/log/app.log",
    environment => "PATH=$PATH",
    user            => root,
}

I got the following as you can see in attached file.


-- 
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.

Reply via email to