Ignore:
Timestamp:
2009-04-29T15:00:42+02:00 (7 years ago)
Author:
jow
Message:

[package] busybox: add possibility to set crond log level through /etc/config/system and use level 5 by default which prevents unneeded debug messages on each job execution

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/busybox/files/cron

    r14540 r15481  
    44 
    55start () { 
     6        loglevel=$(/sbin/uci get "system.@system[0].cronloglevel" 2>/dev/null) 
    67        [ -z "$(ls /etc/crontabs/)" ] && exit 1 
    78        mkdir -p /var/spool/cron 
    89        [ -L /var/spool/cron/crontabs ] || ln -s /etc/crontabs /var/spool/cron/crontabs 
    9         crond -c /etc/crontabs 
     10        crond -c /etc/crontabs -l ${loglevel:-5} 
    1011} 
    1112 
Note: See TracChangeset for help on using the changeset viewer.