aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pyagl/services/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyagl/services/base.py b/pyagl/services/base.py
index 1940393..231ebb1 100644
--- a/pyagl/services/base.py
+++ b/pyagl/services/base.py
@@ -173,7 +173,7 @@ class AGLBaseService:
exit(1)
pidres = await c.run(f'systemctl show --property MainPID --value {servicename.stdout.strip()}')
pid = int(pidres.stdout.strip(), 10)
- if pid is 0:
+ if pid == 0:
logging.warning(f'Service {servicename.stdout.strip()} is stopped')
return None
else: