def write
      begin
        FileUtils.mkdir_p(@pid_dir)
        open(@pid_file,'w') { |f| f.write(Process.pid) }
        File.chmod(0644, @pid_file)
      rescue StandardError => e
        ErrorTracker.log(self, "Failed to create PID file", e, nil, :caller)
        raise
      end
      true
    end
def write
      begin
        FileUtils.mkdir_p(@pid_dir)
        open(@pid_file,'w') { |f| f.write(Process.pid) }
        File.chmod(0644, @pid_file)
      rescue StandardError => e
        ErrorTracker.log(self, "Failed to create PID file", e, nil, :caller)
        raise
      end
      true
    end
Write pid to pid file

 === Return
 true:: Always return true