Является ли systemctl daemon-reload равным сервисом перезапуска systemctl?

У меня есть имя службы serviceA в ubuntu16 и в то же время это демон.

Итак, когда я делаю systemctl daemon-reload, он включает действие systemctl restart serviceA?

2
задан 4 April 2018 в 06:03

2 ответа

Нет

Из man systemctl (возможно, самая длинная справочная страница в мире):

Manager Lifecycle Commands daemon-reload Reload the systemd manager configuration. This will rerun all generators (see systemd.generator(7)), reload all unit files, and recreate the entire dependency tree. While the daemon is being reloaded, all sockets systemd listens on behalf of user configuration will stay accessible. This command should not be confused with the reload command.

Существует различие между reload и restart

Unit Commands reload PATTERN... Asks all units listed on the command line to reload their configuration. Note that this will reload the service-specific configuration, not the unit configuration file of systemd. If you want systemd to reload the configuration file of a unit, use the daemon-reload command. In other words: for the example case of Apache, this will reload Apache's httpd.conf in the web server, not the apache.service systemd unit file. This command should not be confused with the daemon-reload command. restart PATTERN... Restart one or more units specified on the command line. If the units are not running yet, they will be started.
0
ответ дан 17 July 2018 в 17:32

Нет

Из man systemctl (возможно, самая длинная справочная страница в мире):

Manager Lifecycle Commands daemon-reload Reload the systemd manager configuration. This will rerun all generators (see systemd.generator(7)), reload all unit files, and recreate the entire dependency tree. While the daemon is being reloaded, all sockets systemd listens on behalf of user configuration will stay accessible. This command should not be confused with the reload command.

Существует различие между reload и restart

Unit Commands reload PATTERN... Asks all units listed on the command line to reload their configuration. Note that this will reload the service-specific configuration, not the unit configuration file of systemd. If you want systemd to reload the configuration file of a unit, use the daemon-reload command. In other words: for the example case of Apache, this will reload Apache's httpd.conf in the web server, not the apache.service systemd unit file. This command should not be confused with the daemon-reload command. restart PATTERN... Restart one or more units specified on the command line. If the units are not running yet, they will be started.
0
ответ дан 23 July 2018 в 18:22

Другие вопросы по тегам:

Похожие вопросы: