¿Cuál es la diferencia entre el arranque de un servicio y el arranque de un servicio en un dominio?

1

En macOS (Darwin, 4.4BSD derivado), tiene este ingenioso administrador de procesos llamado launchd controlado por launchctl analog to systemd y systemctl.

La ejecución de launchctl solo produce una lista de subcomandos. Entre ellos se encuentran bootstrap y load. ¿Cuál es la diferencia (es) entre ellos?

Subcommands:
    bootstrap       Bootstraps a domain or a service into a domain.
    bootout         Tears down a domain or removes a service from a domain.
    enable          Enables an existing service.
    disable         Disables an existing service.
    uncache         Removes the specified service name from the service cache.
    kickstart       Forces an existing service to start.
    attach          Attach the system's debugger to a service.
    debug           Configures the next invocation of a service for debugging.
    kill            Sends a signal to the service instance.
    blame           Prints the reason a service is running.
    print           Prints a description of a domain or service.
    print-cache     Prints information about the service cache.
    print-disabled  Prints which services are disabled.
    plist           Prints a property list embedded in a binary (targets the Info.plist by default).
    procinfo        Prints port information about a process.
    hostinfo        Prints port information about the host.
    resolveport     Resolves a port name from a process to an endpoint in launchd.
    limit           Reads or modifies launchd's resource limits.
    runstats        Prints performance statistics for a service.
    examine         Runs the specified analysis tool against launchd in a non-reentrant manner.
    config          Modifies persistent configuration parameters for launchd domains.
    dumpstate       Dumps launchd state to stdout.
    dumpjpcategory  Dumps the jetsam properties category for all services.
    reboot          Initiates a system reboot of the specified type.
    bootshell       Brings the system up from single-user mode with a console shell.
    load            Bootstraps a service or directory of services.
    unload          Unloads a service or directory of services.
    remove          Unloads the specified service name.
    list            Lists information about services.
    start           Starts the specified service.
    stop            Stops the specified service if it is running.
    setenv          Sets the specified environment variables for all services within the domain.
    unsetenv        Unsets the specified environment variables for all services within the domain.
    getenv          Gets the value of an environment variable from within launchd.
    bsexec          Execute a program in another process' bootstrap context.
    asuser          Execute a program in the bootstrap context of a given user.
    submit          Submit a basic job from the command line.
    managerpid      Prints the PID of the launchd controlling the session.
    manageruid      Prints the UID of the current launchd session.
    managername     Prints the name of the current launchd session.
    error           Prints a description of an error.
    variant         Prints the launchd variant.
    version         Prints the launchd version.
    help            Prints the usage for a given subcommand.
    
pregunta Jonathan Komar 03.04.2017 - 20:53

1 respuesta

1

Lanzamiento de Apple reescrito en OS X Yosemite (10.10)

Por lo que yo entiendo, agregaron bootstrap | bootout como reemplazos para load | unload . load | unload se incluye actualmente en LEGACY SUBCOMMANDS en el manual de launchctl.

La principal diferencia cuando solo intentas cargar o descargar un agente / daemon es que bootstrap | bootout te obliga a ser explícito sobre el target domain en el que se cargará el agente / daemon.

Echa un vistazo a esta gran publicación de blog sobre algunos de Los cambios en la sintaxis de launchctl en el launchos de OS X en Yosemite reescriben para obtener más detalles sobre todo lo que acabo de mencionar.

    
respondido por el Yer Bum 28.10.2018 - 01:01

Lea otras preguntas en las etiquetas