@classmethod
def createFromPidFile(cls, pidfile):
    """
            createFromPidFile - Creates a Program from a pidfile.

            @param pidfile <str> - Path to pid file

            @raises - An exception if no process can be created from the pidfile. Specific exception depends on error. Not validated with proctitle_re, do that in an additional call.
        """
    with open(pidfile, 'rt') as f:
        pid = f.read().strip()
    pid = int(pid)
    procCmdline = cls._getProcCmdline(pid)
    return cls(pidfile, pid, running=True, **procCmdline)
