achalagarwal / keystrokes

extensible and powerful framework for keystroke analysis
GNU General Public License v3.0
2 stars 0 forks source link

Fault Tolerance and Status scripts #12

Open achalagarwal opened 4 years ago

achalagarwal commented 4 years ago

Is your feature request related to a problem? Please describe. When a user wants to check if their live streams or ops are running as a daemon

Describe the solution you'd like Scripts for checking the running processes and verifying the dbus daemon, main.py and others as we add them

Describe alternatives you've considered None

Additional context A sample python script

import subprocess
ps = subprocess.Popen(["ps","aux"], stdout=subprocess.PIPE)
op = subprocess.check_output(["grep", "src/__main__.py"], stdin=ps.stdout)
op = op.decode("utf-8)
check  = len(op.split("\n"))
return check > 0