Bug 621033

Summary: Environment variable in /etc/sysconfig/atop is not reflected
Product: [Fedora] Fedora EPEL Reporter: Raina Otoni <raina>
Component: atopAssignee: Kairo Francisco de Araujo <kairo>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: el5CC: kairo, samm, wolfy
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-09 11:31:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Raina Otoni 2010-08-04 04:01:07 UTC
Description of problem:
Environment variable in /etc/sysconfig/atop is not reflected.

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

How reproducible:
change variable in /etc/sysconfig/atop, and restart atop

Steps to Reproduce:
1. Modify INTERVAL to 60
2. service atop restart
3. $ ps auxww|grep atop

Actual results:
/usr/bin/atop -a -w /var/log/atop/atop_20100804 600

Expected results:
/usr/bin/atop -a -w /var/log/atop/atop_20100804 60

Additional info:
The environment variables is overwritten in followings.

I have changed operator from || to &&, then it works correctly.
- [ -z $INTERVAL ] ||  INTERVAL=600
+ [ -z $INTERVAL ] &&  INTERVAL=600

Comment 1 Alex Samorukov 2010-08-09 08:37:35 UTC
looks like ti be a duplicate of the https://bugzilla.redhat.com/show_bug.cgi?id=609124

Comment 2 Raina Otoni 2010-08-09 11:31:02 UTC
Thanks. This bug is duplicate.

*** This bug has been marked as a duplicate of bug 609124 ***