Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 538776

Summary: Configuration file settings are not effective.
Product: Red Hat Enterprise Linux 5 Reporter: Martin Cermak <mcermak>
Component: atAssignee: Marcela Mašláňová <mmaslano>
Status: CLOSED NOTABUG QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.5CC: bownes, dkovalsk
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-11-25 11:00:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 232259    

Description Martin Cermak 2009-11-19 11:44:12 UTC
Description of problem:


At reads its newly added configuration file (/etc/sysconfig/atd) but configuration settings from this file are not effective.


Version-Release number of selected component (if applicable):

at-3.1.8-83.el5.x86_64

How reproducible:


At (at-3.1.8-83.el5.x86_64) recognizes the newly added configuration file (/etc/sysconfig/atd) in a way that it won't ever start if some syntax error is present there -that is right. But it seems, that atd does not interpret configuration directives from this config file properelly:

For example the setting OPTS="-l 3" should mean that jobs are not executed if system load exceeds 3. But this does not work.

Other configuration directives are not considered by atd as well.


Steps to Reproduce:
1. Edit /etc/sysconfig/atd and set OPTS="-l 3" there.
2. Invoke system load over 3. (for example by dd if=/dev/zero bs=100M | gzip | gzip -d | gzip | gzip -d | gzip | gzip -d > /dev/null)
3. Schedule a job.
  
Actual results:

Job is executed.

Expected results:

Job should not be executed.

Additional info:

Comment 4 Marcela Mašláňová 2009-11-25 09:27:41 UTC
*** Bug 540670 has been marked as a duplicate of this bug. ***

Comment 5 Marcela Mašláňová 2009-11-25 11:00:54 UTC
atd options like -b and -l are working only for batch commands. (See man atd). If you use the reproducer and use batch instead of at command, it will be working.