2

> man cron, tells me that the default log level for cron is 1; i.e. cron "will log the start of all cron jobs."
I want to set that to 7, so I checked in all the wrong places, starting with the file /etc/syslog.d/50-default.conf. I am running Trusty 14.04.
Pointers anyone ?

Cbhihe
  • 2,801
  • 3
  • 27
  • 47

2 Answers2

5

You can edit the cron init script (/etc/init/cron.conf) as follow:

# cron - regular background program processing daemon
#
# cron is a standard UNIX program that runs user-specified programs at
# periodic scheduled times

description "regular background program processing daemon"

start on runlevel [2345]
stop on runlevel [!2345]

expect fork
respawn

exec cron -L 7
0

Or if your installation doesn't have the /etc/init/cron.conf file, then edit the /etc/init.d/cron file by adding:-

EXTRA_OPTS="-L 0"

in the parameters section.