示例#1
0
def reboot(reboot_cmd=""):

    ev_type = _pbs_v1.event().type
    if ((ev_type & _pbs_v1.MOM_EVENTS) == 0):
        raise NotImplementedError("reboot(): only for mom hooks")
    _pbs_v1.reboot(reboot_cmd)
    raise SystemExit
示例#2
0
def reboot(reboot_cmd=""):

    ev_type = _pbs_v1.event().type
    if ( (ev_type & _pbs_v1.MOM_EVENTS) == 0 ):
        raise NotImplementedError("reboot(): only for mom hooks")
    _pbs_v1.reboot(reboot_cmd)
    raise SystemExit