Skip to content

Commit

Permalink
Merge branch 'windows_service_fix' of git://github.com/Ratio2/buildbot
Browse files Browse the repository at this point in the history
  • Loading branch information
djmitche committed Mar 16, 2013
2 parents 1343114 + 986bfee commit 525f82a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions master/contrib/windows/buildbot_service.py
Expand Up @@ -143,6 +143,9 @@ def _checkConfig(self):
if not os.path.isfile(python_exe):
# for ppl who build Python itself from source.
python_exe = os.path.join(sys.prefix, "PCBuild", "python.exe")
if not os.path.isfile(python_exe):
# virtualenv support
python_exe = os.path.join(sys.prefix, "Scripts", "python.exe")
if not os.path.isfile(python_exe):
self.error("Can not find python.exe to spawn subprocess")
return False
Expand Down Expand Up @@ -226,7 +229,7 @@ def SvcDoRun(self):
self.info("Starting BuildBot in directory '%s'" % (bbdir, ))
hstop = self.hWaitStop

cmd = '%s --spawn %d start %s' % (self.runner_prefix, hstop, bbdir)
cmd = '%s --spawn %d start --nodaemon %s' % (self.runner_prefix, hstop, bbdir)
#print "cmd is", cmd
h, t, output = self.createProcess(cmd)
child_infos.append((bbdir, h, t, output))
Expand Down Expand Up @@ -545,7 +548,7 @@ def HandleCommandLine():
# child-process.
# First arg is the handle to wait on
# Fourth arg is the config directory to use for the buildbot/slave
_RunChild(DetermineRunner(sys.argv[4]))
_RunChild(DetermineRunner(sys.argv[5]))
else:
win32serviceutil.HandleCommandLine(BBService,
customOptionHandler=CustomInstall)
Expand Down
7 changes: 5 additions & 2 deletions slave/contrib/windows/buildbot_service.py
Expand Up @@ -143,6 +143,9 @@ def _checkConfig(self):
if not os.path.isfile(python_exe):
# for ppl who build Python itself from source.
python_exe = os.path.join(sys.prefix, "PCBuild", "python.exe")
if not os.path.isfile(python_exe):
# virtualenv support
python_exe = os.path.join(sys.prefix, "Scripts", "python.exe")
if not os.path.isfile(python_exe):
self.error("Can not find python.exe to spawn subprocess")
return False
Expand Down Expand Up @@ -226,7 +229,7 @@ def SvcDoRun(self):
self.info("Starting BuildBot in directory '%s'" % (bbdir, ))
hstop = self.hWaitStop

cmd = '%s --spawn %d start %s' % (self.runner_prefix, hstop, bbdir)
cmd = '%s --spawn %d start --nodaemon %s' % (self.runner_prefix, hstop, bbdir)
#print "cmd is", cmd
h, t, output = self.createProcess(cmd)
child_infos.append((bbdir, h, t, output))
Expand Down Expand Up @@ -545,7 +548,7 @@ def HandleCommandLine():
# child-process.
# First arg is the handle to wait on
# Fourth arg is the config directory to use for the buildbot/slave
_RunChild(DetermineRunner(sys.argv[4]))
_RunChild(DetermineRunner(sys.argv[5]))
else:
win32serviceutil.HandleCommandLine(BBService,
customOptionHandler=CustomInstall)
Expand Down

0 comments on commit 525f82a

Please sign in to comment.