Skip to content

Commit 95a2ace

Browse files
authored
Merge pull request #8 from pruiz/pruiz/fix-master-detection-with-setproctitle
Fix detection of running salt-master, when setproctitle extension has been installed
2 parents 339fdf7 + ff83dc9 commit 95a2ace

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pepperboard/core/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ def getmasterstatus():
2929
for proc in psutil.process_iter():
3030
if proc.name() == 'salt-master':
3131
return 0
32+
if len(proc.cmdline()) > 0 and 'salt-master' in proc.cmdline()[0]:
33+
return 0
3234
return 1
3335

3436

0 commit comments

Comments
 (0)