Support regex search for pid and drop pidfile feature