delete pid file before restart
delete useless code