in reply to Re^2: Detecting stale pid file under *nixin thread Detecting stale pid file under *nix
Then check command line. Even if it is perl, the command line still contains name of the script and parameters.