##// END OF EJS Templates
Added .pid files to ipcluster and ipcontroller and daemon mode....
Added .pid files to ipcluster and ipcontroller and daemon mode. * The ClusterDir object now creates a /pid sub-dir for storing .pid files. * Both ipcluster and ipcontroller now create .pid files upon starting. * Both ipcluster and ipcontroller check for the existance of .pid files before starting and won't start if another instance is running. * ipcluster has a daemon mode (--daemon/--nodaemon) will daemonize the process and then write the .pid file. * Added a "ipcluster stop" subcommand which looks for a .pid file and kills the process.

File last commit:

r2216:5113ef3a
r2313:d3d8ba63
Show More
__init__.py
30 lines | 1.0 KiB | text/x-python | PythonLexer
#!/usr/bin/env python
# encoding: utf-8
"""
Extra capabilities for IPython
"""
#-----------------------------------------------------------------------------
# Copyright (C) 2008-2009 The IPython Development Team
#
# Distributed under the terms of the BSD License. The full license is in
# the file COPYING, distributed as part of this software.
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Imports
#-----------------------------------------------------------------------------
from IPython.lib.inputhook import (
enable_wx, disable_wx,
enable_gtk, disable_gtk,
enable_qt4, disable_qt4,
enable_tk, disable_tk,
set_inputhook, clear_inputhook,
current_gui, spin,
appstart_qt4, appstart_wx,
appstart_gtk, appstart_tk
)
#-----------------------------------------------------------------------------
# Code
#-----------------------------------------------------------------------------