|
@@ -40,16 +40,16 @@ def restart(item):
|
|
|
if name:
|
|
|
cur_pid = os.getpid()
|
|
|
pids = file_pid(name)
|
|
|
- print "start restart " + name
|
|
|
+ print "restart " + name
|
|
|
for pid in pids:
|
|
|
try:
|
|
|
if cur_pid != pid:
|
|
|
os.kill(pid, signal.SIGKILL)
|
|
|
- print 'kill pid=', pid
|
|
|
+ # print 'kill pid=', pid
|
|
|
else:
|
|
|
continue
|
|
|
except OSError, e:
|
|
|
- print "OSError no=", e.errno, " err=", e.strerror
|
|
|
+ # print "OSError no=", e.errno, " err=", e.strerror
|
|
|
pass
|
|
|
except BaseException, be:
|
|
|
pass
|