<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def make(self, pnum):
 """ Make a PID file and populate with PID number. """

        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)))