Actions
Bug #4834
closedcron jobs replace /var/log/foreman/cron.log every time they runs
Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Description
Cron jobs replace /var/log/foreman/cron.log every time they runs - like here:
# cat /etc/cron.d/foreman [...] 15 23 * * * foreman /usr/sbin/foreman-rake db:sessions:clear >/var/log/foreman/cron.log 2>&1 [...]
Imo there should be something like:
15 23 * * * foreman /usr/sbin/foreman-rake db:sessions:clear >>/var/log/foreman/cron.log 2>&1
but on all places.
# grep -r cron.log /etc/cron* /etc/cron.d/foreman:15 23 * * * foreman /usr/sbin/foreman-rake db:sessions:clear >/var/log/foreman/cron.log 2>&1 /etc/cron.d/foreman:0 7 * * * foreman /usr/sbin/foreman-rake reports:summarize >/var/log/foreman/cron.log 2>&1 /etc/cron.d/foreman:30 7 * * * foreman /usr/sbin/foreman-rake reports:expire >/var/log/foreman/cron.log 2>&1 /etc/cron.d/foreman:*/30 * * * * foreman /usr/sbin/foreman-rake trends:counter >/var/log/foreman/cron.log 2>&1 /etc/cron.d/foreman:0 8 * * * foreman /usr/sbin/foreman-rake trends:clean >/var/log/foreman/cron.log 2>&1 /etc/cron.d/foreman:#*/2 * * * * puppet /usr/bin/ruby193-ruby /etc/puppet/node.rb --push-facts >/var/log/foreman/cron.log 2>&1 /etc/cron.d/foreman:#*/30 * * * * foreman /usr/sbin/foreman-rake puppet:migrate:populate_hosts >/var/log/foreman/cron.log 2>&1
I have these packages:
# rpm -qa | grep -e katello -e foreman | sort foreman-1.5.0.10-1.el6sat.noarch foreman-compute-1.5.0.10-1.el6sat.noarch foreman-libvirt-1.5.0.10-1.el6sat.noarch foreman-ovirt-1.5.0.10-1.el6sat.noarch foreman-postgresql-1.5.0.10-1.el6sat.noarch foreman-proxy-1.5.3-1.el6sat.noarch foreman-selinux-1.5.0-0.develop.el6sat.noarch foreman-vmware-1.5.0.10-1.el6sat.noarch katello-1.5.0-18.el6sat.noarch katello-apache-1.0-1.noarch katello-ca-1.0-1.noarch katello-certs-tools-1.5.5-1.el6sat.noarch katello-installer-0.0.30-1.el6sat.noarch pulp-katello-plugins-0.2-1.el6sat.noarch ruby193-rubygem-foreman-tasks-0.4.0-5.el6sat.noarch ruby193-rubygem-katello-1.5.0-23.el6sat.noarch rubygem-foreman_api-0.1.11-4.el6sat.noarch rubygem-hammer_cli_foreman-0.0.18-8.el6sat.noarch rubygem-hammer_cli_foreman_tasks-0.0.1-4.el6sat.noarch rubygem-hammer_cli_katello-0.0.3-6.el6sat.noarch rubygem-katello_api-0.0.8-2.el6sat.noarch something-foreman-client-1.0-1.noarch something-foreman-proxy-1.0-1.noarch
Actions