diff options
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py index ad84bdef5..56f32c9c5 100755 --- a/pyLoadCore.py +++ b/pyLoadCore.py @@ -125,8 +125,12 @@ class Core(object): self.quitInstance() exit() elif option == "--status": - print self.isAlreadyRunning() - exit() + pid = self.isAlreadyRunning() + if self.isAlreadyRunning(): + print pid + exit(0) + else: + exit(1) elif option == "--clean": self.cleanTree() exit() |