> 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 ?
Asked
Active
Viewed 6,200 times
2

Cbhihe
- 2,761
- 3
- 24
- 47
2 Answers
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

Sylvain Pineau
- 62,169
-
This is the old way that worked up until a FRESH install of 16.04 LTS. Upgrades from 14.04 to 16.04 still work this way, however. Same with using
service cron restart
- works fine until a 16.04 FRESH install. – SDsolar Oct 21 '17 at 06:58
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.

Dallas Clarke
- 101
/etc/default/cron
says "This file has been deprecated". – Doug Smythies Dec 07 '16 at 16:27