diff options
author | nicolargo <nicolashennion@gmail.com> | 2016-04-27 21:35:19 +0200 |
---|---|---|
committer | nicolargo <nicolashennion@gmail.com> | 2016-04-27 21:35:19 +0200 |
commit | ba249a75143989ec7f77393b1b0942ad4bb174ab (patch) | |
tree | 2bad3f7b62a338155b792f9c7e328b41f2f00b65 /glances/amps | |
parent | 46133420195c6450fc78fd00654154bc6a2b2fa6 (diff) |
Add SystemV AMP
Diffstat (limited to 'glances/amps')
-rw-r--r-- | glances/amps/glances_systemd.py | 8 |
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: |