Bug 1524445

Summary: Unable to change atop interval
Product: [Fedora] Fedora EPEL Reporter: Trey Dockendorf <tdockendorf>
Component: atopAssignee: Gwyn Ciesla <gwync>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: epel7CC: agrover, gwync
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-11 18:03:42 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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