コード例 #1
0
ファイル: functions.py プロジェクト: mdomlop/snapman
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()
コード例 #2
0
def daemon():
    for i in settings.sections:
        x = Section(settings.config[i])
        x.daemonize()