code: def make(self, pnum):
          
          try:
                  
              # Create the PID file
              self.mkfile(self.pid_file, pnum)
          except Exception as e:
              self.die('Failed to generate PID file: {}'.format(str(e)))
docs: Make a PID file and populate with PID number.