Todos os estados do systemd [closed]

4

O estado do systemd é composto por 3 subcomponentes (LOAD, ACTIVE, SUB); Quais são os diferentes valores que esses subcomponentes podem assumir? Eu sei que o LOAD pode ser "carregado", o ACTIVE pode ser "falhado" e o SUB pode ser "falhado", mas quais são os outros?

    
por flipchart 01.04.2015 / 21:17

1 resposta

4

quais são os outros?

A primeira fonte, systemd, o sistema init-systemd e o gerenciador de serviços listas:

  • ativo
  • inativo
  • ativando
  • desativando
  • com falha

A segunda fonte, as listas Sobre os alvos do estado do sistema (além ):

  • não encontrado
  • morto

systemd, sistema init - systemd e gerenciador de serviços

Concepts

systemd provides a dependency system between various entities called "units" of 12 different types. Units encapsulate various objects that are relevant for system boot-up and maintenance. The majority of units are configured in unit configuration files, whose syntax and basic set of options is described in systemd.unit(5), however some are created automatically from other configuration, dynamically from system state or programmatically at runtime.

Units may be "active" (meaning started, bound, plugged in, ..., depending on the unit type, see below), or "inactive" (meaning stopped, unbound, unplugged, ...), as well as in the process of being activated or deactivated, i.e. between the two states (these states are called "activating", "deactivating"). A special "failed" state is available as well, which is very similar to "inactive" and is entered when the service failed in some way (process returned error code on exit, or crashed, or an operation timed out). If this state is entered, the cause will be logged, for later reference.

Note that the various unit types may have a number of additional substates, which are mapped to the five generalized unit states described here.

Fonte systemd, sistema init-systemd e gerenciador de serviços

Sobre os alvos do estado do sistema

Contém um exemplo de saída, incluindo os seguintes valores:

  • LOAD "loaded" or "not-found"

  • ACTIVE "active" or "inactive"

  • SUB "active" or "dead"

Fonte Sobre os alvos do estado do sistema

    
por 02.04.2015 / 09:01

Tags