Developers, do consider different user roles! -A bad experience with CRON

Source: Internet
Author: User

The story:

Last week, I found one of our Embedded ARM Linux Device ran out of Flash space (totally only 128 M for apps and OS ).

After checking for a while, I found that test app created too program files which occupied the major flash space.

But after deeper checking, also found that cron log file (/var/cron/log) also ocuppied more than 10 m space.

I looked at cron's source code and saw that there's a macro definition (LOG_FILE) to decide logging to/var/cron/log or not.

And we're using "Angstrom-distribution" which provides pre-compiled. IPK packages, we were not aware that this macro was openned while compiling.

 

The thoughts:

Firstly, it's our requirement analysis and testing problem that didn't check carefully if there're potential disk space eaters.

And I really think that IT can be better that in original cron developers 'mind that software package end users and package providers are different user roles.

And it's better to aware that different users 'pain points maybe very different like some doesn' t care about 10 m disk usage while some cares a lot.

If considered these factors, they mostly wocould consider to provide end users a dynamic way to configure logging behavior.

(BTW, good to see that in latest Ubuntu distribution,/etc/default/cron file allow user to define environment variables to control this .)

 

Further readings:

What is Cron: Http://en.wikipedia.org/wiki/Cron

Cron source code(Didn't find Angstrom's but Ubuntu's): https://launchpad.net/ubuntu/+source/cron/3.0pl1-120ubuntu3

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.