From 43460c40d00819535dfeecfdb80f8a608f2190fd Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 13 Oct 2011 15:25:32 +0200 Subject: improvement for hook plugins, new internal plugin type --- pyLoadCore.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'pyLoadCore.py') 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() -- cgit v1.2.3