I only need to run puppet weekly, so I made this little shell script and put in the the /etc/cron.weekly folder, but it's not running. If I run the script manually, it works just fine. Why not from cron?
#!/bin/bash ################################# # Cron job managed by Puppet ################################# # Randomize 15 minutes to avoid overloading server sleep $((RANDOM % 900)) exec puppet agent --no-daemonize --onetime -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/Ccx8LJ7QCRMJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.