Esempio n. 1
0
def test_config(print_output=True):
    """ test the config file """
    maiscreenz = Maiscreenz()
    result = maiscreenz.validate_config()

    if result and print_output:
        print 'Tests pass!'
        return True
    else:
        return result
Esempio n. 2
0
def run():
    """ runs the actual daemon in the foreground """
    maiscreenz = Maiscreenz()
    maiscreenz.load_config()
    maiscreenz.start_watching()
Esempio n. 3
0
def install_config():
    """ write a sample config file """
    maiscreenz = Maiscreenz()
    maiscreenz.write_sample_config()