101
101
def stop_daemonized(self):
102
102
log.info("Stopping daemonized zookeeper: installed=%s, port=%s",
103
103
self.install_path, self.port)
104
105
if os.path.exists(self.pidfile):
105
106
subprocess.check_call(['start-stop-daemon','--stop',
106
107
'--retry=TERM/30/KILL/5',
107
108
'--pidfile',self.pidfile])
111
113
shutil.rmtree(self.working_path)