def stop(self):
        launchctl_cmd = ['/bin/launchctl', 'stop', self.label]
        proc = subprocess.Popen(launchctl_cmd, shell=False, bufsize=-1,
                                stdin=subprocess.PIPE,
                                stdout=subprocess.PIPE,
                                stderr=subprocess.PIPE)
        err = proc.communicate()[1]
        if proc.returncode:
            raise LaunchdJobException(err)
Stop the launchd job
dataset/ETHPy150Open munki/munki/code/client/munkilib/launchd.py/Job.stop