##// END OF EJS Templates
Doing ipcluster stop on windows will now simply remove the .pid file.
Brian Granger -
Show More
@@ -388,12 +388,18 b' class IPClusterApp(ApplicationWithClusterDir):'
388 388 # Here I exit with a unusual exit status that other processes
389 389 # can watch for to learn how I existed.
390 390 self.exit(ALREADY_STOPPED)
391 sig = config.Global.signal
392 self.log.info(
393 "Stopping cluster [pid=%r] with [signal=%r]" % (pid, sig)
394 )
395 os.kill(pid, sig)
396
391 else:
392 if os.name=='posix':
393 sig = config.Global.signal
394 self.log.info(
395 "Stopping cluster [pid=%r] with [signal=%r]" % (pid, sig)
396 )
397 os.kill(pid, sig)
398 elif os.name='nt':
399 # As of right now, we don't support daemonize on Windows, so
400 # stop will not do anything. Minimally, it should clean up the
401 # old .pid files.
402 self.remove_pid_file()
397 403
398 404 def launch_new_instance():
399 405 """Create and run the IPython cluster."""
General Comments 0
You need to be logged in to leave comments. Login now