kolibri/utils/cli.py
def services(daemon=True):
    """
    Start the kolibri background services.

    :param: daemon: Fork to background process (default: True)
    """

    logger.info("Starting Kolibri background services")

    # Daemonize at this point, no more user output is needed
    if daemon:

        kwargs = {}
        # Truncate the file
        if os.path.isfile(server.DAEMON_LOG):
            open(server.DAEMON_LOG, "w").truncate()
        logger.info("Going to daemon mode, logging to {0}".format(server.DAEMON_LOG))
        kwargs["out_log"] = server.DAEMON_LOG
        kwargs["err_log"] = server.DAEMON_LOG

        become_daemon(**kwargs)

    server.services()

    Start the kolibri background services.

    :param: daemon: Fork to background process (default: True)
    
Start the kolibri background services.
:param: daemon: Fork to background process (default: True)
Start the kolibri background services . : param : daemon : Fork to background process ( default : True )
def services(daemon=True):
    logger.info("Starting Kolibri background services")
    if daemon:
        kwargs = {}
        if os.path.isfile(server.DAEMON_LOG):
            open(server.DAEMON_LOG, "w").truncate()
        logger.info("Going to daemon mode, logging to {0}".format(server.DAEMON_LOG))
        kwargs["out_log"] = server.DAEMON_LOG
        kwargs["err_log"] = server.DAEMON_LOG
        become_daemon(**kwargs)
    server.services()
def services ( daemon = True ) : logger . info ( "Starting Kolibri background services" ) if daemon : kwargs = { } if os . path . isfile ( server . DAEMON_LOG ) : open ( server . DAEMON_LOG , "w" ) . truncate ( ) logger . info ( "Going to daemon mode, logging to {0}" . format ( server . DAEMON_LOG ) ) kwargs [ "out_log" ] = server . DAEMON_LOG kwargs [ "err_log" ] = server . DAEMON_LOG become_daemon ( ** kwargs ) server . services ( )
Start the kolibri background services.
Start the kolibri background services .
"""
    Start the kolibri background services.

    :param: daemon: Fork to background process (default: True)
    """ # Daemonize at this point, no more user output is needed # Truncate the file
daemon