def stopOpenDJ():
    output = getOutput([service, 'opendj', 'stop'])
    if output.find("Directory Server is now stopped") > 0:
        logIt("Directory Server is now stopped")
    else:
        logIt("OpenDJ did not stop properly... exiting. Check /opt/opendj/logs/errors", True)
        sys.exit(3)
dataset/ETHPy150Open GluuFederation/community-edition-setup/static/scripts/import23.py/stopOpenDJ/original