Changeset 15481


Ignore:
Timestamp:
2009-04-29T15:00:42+02:00 (9 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

Location:
trunk/package/busybox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/busybox/Makefile

    r15245 r15481  
    1010PKG_NAME:=busybox 
    1111PKG_VERSION:=1.11.3 
    12 PKG_RELEASE:=5 
     12PKG_RELEASE:=6 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
  • 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.