diff --git a/services.py b/services.py index e7dabd9..1a95b50 100644 --- a/services.py +++ b/services.py @@ -3,7 +3,7 @@ from config import bcolors,env def genLine(name, status, time): if status == 'active': return '[' + name + '] [' + bcolors.EMPTY + '✓' + bcolors.RESET + '] [' + bcolors.EMPTY + time + bcolors.RESET + ']' - if status == 'inactive': return '[' + name + '] [' + bcolors.FULL + '✓' + bcolors.RESET + '] [' + bcolors.FULL + 'N/A' + bcolors.RESET + ']' + if status == 'inactive': return '[' + name + '] [' + bcolors.FULL + '✕' + bcolors.RESET + '] [' + bcolors.FULL + 'N/A' + bcolors.RESET + ']' statuscmd = 'systemctl is-active {}' timecmd = 'systemctl status {} | grep -Po \".*; \K(.*)(?= ago)\"'