cwctl.py
changeset 2790 968108e16066
parent 2743 b0e79a77ad67
child 2884 7fcfb27ab975
equal deleted inserted replaced
2789:39712da6f397 2790:968108e16066
     9 from os.path import exists, join, isfile, isdir
     9 from os.path import exists, join, isfile, isdir
    10 
    10 
    11 from logilab.common.clcommands import register_commands, pop_arg
    11 from logilab.common.clcommands import register_commands, pop_arg
    12 from logilab.common.shellutils import ASK
    12 from logilab.common.shellutils import ASK
    13 
    13 
    14 from cubicweb import ConfigurationError, ExecutionError, BadCommandUsage, underline_title
    14 from cubicweb import ConfigurationError, ExecutionError, BadCommandUsage
    15 from cubicweb.cwconfig import CubicWebConfiguration as cwcfg, CONFIGURATIONS
    15 from cubicweb.cwconfig import CubicWebConfiguration as cwcfg, CONFIGURATIONS
    16 from cubicweb.toolsutils import Command, main_run,  rm, create_dir
    16 from cubicweb.toolsutils import Command, main_run, rm, create_dir, underline_title
       
    17 
    17 
    18 
    18 def wait_process_end(pid, maxtry=10, waittime=1):
    19 def wait_process_end(pid, maxtry=10, waittime=1):
    19     """wait for a process to actually die"""
    20     """wait for a process to actually die"""
    20     import signal
    21     import signal
    21     from time import sleep
    22     from time import sleep