Bug 1524445 - Unable to change atop interval
Summary: Unable to change atop interval
Keywords:
Status: CLOSED DUPLICATE of bug 1520475
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: atop
Version: epel7
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-12-11 14:12 UTC by Trey Dockendorf
Modified: 2017-12-11 18:03 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-11 18:03:42 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Trey Dockendorf 2017-12-11 14:12:46 UTC
Description of problem:

The interval for atop is hardcoded in /usr/share/atop/atop.daily

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

2.3.0-4

How reproducible:

100%

Steps to Reproduce:
1. Install atop
2. Change INTERVAL to 180 in /etc/sysconfig/atop
3. Start atop

Actual results:

Atop continues to run with interval of 10 minutes

Expected results:

Atop would have interval of 3 minutes

Additional info:

Simple fix?

--- /usr/share/atop/atop.daily.orig     2017-12-11 09:12:20.507338132 -0500
+++ /usr/share/atop/atop.daily  2017-12-11 09:11:16.671522935 -0500
@@ -5,6 +5,7 @@
 BINPATH=/usr/bin
 PIDFILE=/var/run/atop.pid
 INTERVAL=600                    # interval 10 minutes
+[ -f /etc/sysconfig/atop ] && source /etc/sysconfig/atop
 
 # verify if atop still runs for daily logging
 #

Comment 1 Gwyn Ciesla 2017-12-11 18:03:42 UTC

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


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