aboutsummaryrefslogtreecommitdiff
path: root/monitor_unified.py
diff options
context:
space:
mode:
Diffstat (limited to 'monitor_unified.py')
-rw-r--r--monitor_unified.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/monitor_unified.py b/monitor_unified.py
index 5279022..e1400dc 100644
--- a/monitor_unified.py
+++ b/monitor_unified.py
@@ -513,7 +513,7 @@ def main():
if os.fork():sys.exit(0)
start()
elif action=='stop':
- with open('/var/run/user/1000/RPGH_starter.pid', r') as pid_file:
+ with open('/var/run/user/1000/RPGH_starter.pid', 'r') as pid_file:
pid=int(pid_file.read())
os.kill(pid,signal.SIGTERM)