请教下各位关于服务状态代表的含义

关于服务状态的含义

(base) htsg@localhost:~> systemctl list-unit-files --type service | grep Redis
Redis_6379.service generated
之前只知道 enabled disabled,昨天安装了一个 redis 配置了一个服务,查看状态显示 generated,百度只找到说是服务存在问题,感觉不可信,请教下它到底代表什么意思?
另外 static、indirect 含义又是什么?

┌──────────────────┬─────────────────────────┬───────────┐
│Name │ Description │ Exit Code │
├──────────────────┼─────────────────────────┼───────────┤
│"enabled" │ Enabled via │ │
├──────────────────┤ .wants/, .requires/ │ │
│"enabled-runtime" │ or Alias= symlinks │ │
│ │ (permanently in │ 0 │
│ │ /etc/systemd/system/, │ │
│ │ or transiently in │ │
│ │ /run/systemd/system/). │ │
├──────────────────┼─────────────────────────┼───────────┤
│"linked" │ Made available through │ │
├──────────────────┤ one or more symlinks │ │
│"linked-runtime" │ to the unit file │ │
│ │ (permanently in │ │
│ │ /etc/systemd/system/ │ │
│ │ or transiently in │ > 0 │
│ │ /run/systemd/system/), │ │
│ │ even though the unit │ │
│ │ file might reside │ │
│ │ outside of the unit │ │
│ │ file search path. │ │
├──────────────────┼─────────────────────────┼───────────┤
│"masked" │ Completely disabled, │ │
├──────────────────┤ so that any start │ │
│"masked-runtime" │ operation on it fails │ │
│ │ (permanently in │ > 0 │
│ │ /etc/systemd/system/ │ │
│ │ or transiently in │ │
│ │ /run/systemd/systemd/). │ │
├──────────────────┼─────────────────────────┼───────────┤
│"static" │ The unit file is not │ 0 │
│ │ enabled, and has no │ │
│ │ provisions for enabling │ │
│ │ in the “[Install]” unit │ │
│ │ file section. │ │
├──────────────────┼─────────────────────────┼───────────┤
│"indirect" │ The unit file itself is │ 0 │
│ │ not enabled, but it has │ │
│ │ a non-empty Also= │ │
│ │ setting in the │ │
│ │ “[Install]” unit file │ │
│ │ section, listing other │ │
│ │ unit files that might │ │
│ │ be enabled, or it has │ │
│ │ an alias under a │ │
│ │ different name through │ │
│ │ a symlink that is not │ │
│ │ specified in Also=. For │ │
│ │ template unit file, an │ │
│ │ instance different than │ │
│ │ the one specified in │ │
│ │ DefaultInstance= is │ │
│ │ enabled. │ │
├──────────────────┼─────────────────────────┼───────────┤
│"disabled" │ The unit file is not │ > 0 │
│ │ enabled, but contains │ │
│ │ an “[Install]” section │ │
│ │ with installation │ │
│ │ instructions. │ │
├──────────────────┼─────────────────────────┼───────────┤
│"generated" │ The unit file was │ 0 │
│ │ generated dynamically │ │
│ │ via a generator tool. │ │
│ │ See │ │
│ │ systemd.generator(7). │ │
│ │ Generated unit files │ │
│ │ may not be enabled, │ │
│ │ they are enabled │ │
│ │ implicitly by their │ │
│ │ generator. │ │
├──────────────────┼─────────────────────────┼───────────┤
│"transient" │ The unit file has been │ 0 │
│ │ created dynamically │ │
│ │ with the runtime API. │ │
│ │ Transient units may not │ │
│ │ be enabled. │ │
├──────────────────┼─────────────────────────┼───────────┤
│"bad" │ The unit file is │ > 0 │
│ │ invalid or another │ │
│ │ error occurred. Note │ │
│ │ that is-enabled will │ │
│ │ not actually return │ │
│ │ this state, but print │ │
│ │ an error message │ │
│ │ instead. However the │ │
│ │ unit file listing │ │
│ │ printed by │ │
│ │ list-unit-files might │ │
│ │ show it. │ │
└──────────────────┴─────────────────────────┴───────────┘

man systemd.generator 不得不说 man 的强大,linux 百科还是 man 强。

本主题在最后一个回复创建后60分钟后自动锁定。不再允许添加新回复。