add plog.pid to  prevent multiple runs