def check(config):
    from pycopia import proctools
    pm = proctools.get_procmanager()
    lighttpd = proctools.which("lighttpd")
    proc = pm.spawnpipe("%s -p -f %s" % (lighttpd, LTCONFIG))
    out = proc.read()
    es = proc.wait()
    if es:
        print out
    else:
        print "Error: %s" % (es,)
Check the lighttpd configuration.
dataset/ETHPy150Open kdart/pycopia/WWW/pycopia/WWW/website.py/check