-z "${PID}"

-z "${pid}"判断pid是否存在

-z 空串

原文地址:https://www.cnblogs.com/curedfisher/p/13266052.html