Bug 621033 - Environment variable in /etc/sysconfig/atop is not reflected
Summary: Environment variable in /etc/sysconfig/atop is not reflected
Status: CLOSED DUPLICATE of bug 609124
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: atop
Version: el5
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Kairo Francisco de Araujo
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2010-08-04 04:01 UTC by Raina Otoni
Modified: 2010-08-09 11:31 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2010-08-09 11:31:02 UTC

Attachments (Terms of Use)

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 ***

Note You need to log in before you can comment on or make changes to this bug.