def running?
      begin
        pid && Process.kill(0, pid)
      rescue Errno::ESRCH
        delete_pid
        false
      rescue Errno::EPERM
        true
      end
    end
def running?
      begin
        pid && Process.kill(0, pid)
      rescue Errno::ESRCH
        delete_pid
        false
      rescue Errno::EPERM
        true
      end
    end
Returns true if the process is running as determined by the numeric
 pid stored in the pid file created by a previous call to start.