summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index 2c643e16b..c5669c496 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -287,6 +287,8 @@ class Core(object):
self.do_restart = False
self.shuttedDown = False
+ self.writePidFile()
+
self.log.info(_("Using home directory: %s") % getcwd())
#@TODO refractor
@@ -366,9 +368,7 @@ class Core(object):
f.close()
self.scheduler.addJob(0, self.accountManager.getAccountInfos)
-
- self.writePidFile()
-
+
while True:
sleep(2)
if self.do_restart: