예제 #1
0
def launchctl_load(name_of_daemon):
    """
    load_launch_daemon(name_of_daemon)

    Loads the launch daemon
    """
    shell_tools.run("launchctl load -w %s/%s" %
                    (sys_tools.get_sys_path('launchdaemons'), name_of_daemon))
예제 #2
0
def launchctl_unload(name_of_daemon):
    """
    unload_launch_daemon(name_of_daemon)

    Unloads the name of daemon
    """
    sleep(secs=3)
    shell_tools.run("launchctl unload -w %s/%s" %
                    (sys_tools.get_sys_path('launchdaemons'), name_of_daemon))
예제 #3
0
파일: sys_tools.py 프로젝트: cgerke/IT-CPE
def launchctl_load(name_of_daemon):
    """
    load_launch_daemon(name_of_daemon)

    Loads the launch daemon
    """
    shell_tools.run(
        "launchctl load -w %s/%s" %
        (sys_tools.get_sys_path('launchdaemons'), name_of_daemon)
    )
예제 #4
0
파일: sys_tools.py 프로젝트: cgerke/IT-CPE
def launchctl_unload(name_of_daemon):
    """
    unload_launch_daemon(name_of_daemon)

    Unloads the name of daemon
    """
    sleep(secs=3)
    shell_tools.run(
        "launchctl unload -w %s/%s" %
        (sys_tools.get_sys_path('launchdaemons'), name_of_daemon)
    )