Help with disable CRON Logging

Discussion in 'Installation/Configuration' started by UserBela, Feb 6, 2019.

Tags:
  1. UserBela

    UserBela New Member

    Hello
    How to disable cron logging?
    My server storage always get full cuz of large cron.log.
    I tried disable with rsysconfig, restart syslog... nothing
    I tried set to 0 at etc/default/cron, restart syslog... nothing

    cron file:
    # only be changed via PAM or from within the crontab; see crontab(5).
    READ_ENV="yes"

    # Extra options for cron, see cron(8)
    #
    # For example, to enable LSB name support in /etc/cron.d/, use
    # EXTRA_OPTS='-l'
    #
    # Or, to log standard messages, plus jobs with exit status != 0:
    # EXTRA_OPTS='-L 5'
    #
    # For quick reference, the currently available log levels are:
    # 0 no logging (errors are logged regardless)
    # 1 log start of jobs
    # 2 log end of jobs
    # 4 log jobs with exit status != 0
    # 8 log the process identifier of child process (in all logs)
    #
    EXTRA_OPTS='-L 0'

    rsysconfig:

    # First some standard log files. Log by facility.
    #
    auth,authpriv.* /var/log/auth.log
    *.*;auth,authpriv,cron.none -/var/log/syslog
    cron.none -/var/log/syslog
    daemon.* -/var/log/daemon.log
    kern.* -/var/log/kern.log
    lpr.* -/var/log/lpr.log
    mail.* -/var/log/mail.log
    user.* -/var/log/user.log

    Help will be appreciated
     
  2. UserBela

    UserBela New Member

    service cron restart was the key..:eek:
     

Share This Page