def daemon(): if not check_root(): clean_exit( '''You need to have root privileges to execute this script in daemon mode. Please try again, this time using "sudo". Exiting.''', BADPERM) for i in settings.sections: x = Section(settings.config[i]) x.daemonize()
def daemon(): for i in settings.sections: x = Section(settings.config[i]) x.daemonize()