]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: rework daemon_reload() functions 22584/head
authorLennart Poettering <lennart@poettering.net>
Mon, 21 Feb 2022 16:11:52 +0000 (17:11 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 22 Feb 2022 13:15:08 +0000 (14:15 +0100)
commit623461c13074542b9a4dd2e7f605b6b7f8be5286
tree3a5c12933192f53d53ba806a9e7aaf985d76263a
parent32baf64d5ad131a1480a1ff9b3d47e32a33bc9d5
systemctl: rework daemon_reload() functions

Let's split out the inner parts of verb_daemon_reload() as a function
daemon_reload() and then stop using the former outside of the verbs
logic, and instead call the latter whenever we need to reload the daemon
as auxiliary opeation.

This should make our logic more systematic as we don't have to provide
fake or misleading argc/argv to verb_daemon_reload() anymore.
src/systemctl/systemctl-add-dependency.c
src/systemctl/systemctl-compat-telinit.c
src/systemctl/systemctl-daemon-reload.c
src/systemctl/systemctl-daemon-reload.h
src/systemctl/systemctl-edit.c
src/systemctl/systemctl-enable.c
src/systemctl/systemctl-preset-all.c
src/systemctl/systemctl-set-default.c
src/systemctl/systemctl.c