summaryrefslogtreecommitdiffstats
path: root/glances/amps
diff options
context:
space:
mode:
authornicolargo <nicolashennion@gmail.com>2016-04-27 21:35:19 +0200
committernicolargo <nicolashennion@gmail.com>2016-04-27 21:35:19 +0200
commitba249a75143989ec7f77393b1b0942ad4bb174ab (patch)
tree2bad3f7b62a338155b792f9c7e328b41f2f00b65 /glances/amps
parent46133420195c6450fc78fd00654154bc6a2b2fa6 (diff)
Add SystemV AMP
Diffstat (limited to 'glances/amps')
-rw-r--r--glances/amps/glances_systemd.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/glances/amps/glances_systemd.py b/glances/amps/glances_systemd.py
index 602ee4c0..df2cad95 100644
--- a/glances/amps/glances_systemd.py
+++ b/glances/amps/glances_systemd.py
@@ -40,9 +40,9 @@ Configuration file example
# Systemd
enable=true
regex=\/usr\/lib\/systemd\/systemd
-refresh=30
+refresh=60
one_line=true
-systemctl_path=/usr/bin/systemctl
+systemctl_cmd=/usr/bin/systemctl --plain
"""
from subprocess import check_output
@@ -70,9 +70,9 @@ class Amp(GlancesAmp):
if self.should_update():
# Get the systemctl status
- logger.debug('{0}: Update stats using systemctl {1}'.format(self.NAME, self.get('systemctl_path')))
+ logger.debug('{0}: Update stats using systemctl {1}'.format(self.NAME, self.get('systemctl_cmd')))
try:
- res = check_output(self.get('systemctl_path').split())
+ res = check_output(self.get('systemctl_cmd').split())
except OSError as e:
logger.debug('{0}: Error while executing systemctl ({1})'.format(self.NAME, e))
else: