]> git.ipfire.org Git - thirdparty/systemd.git/commit
systemctl: prolong timeout of "systemctl daemon-reload"
authorLennart Poettering <lennart@poettering.net>
Mon, 6 Jun 2016 19:48:08 +0000 (21:48 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 10 Jun 2016 18:13:29 +0000 (20:13 +0200)
commit2853b60ab553d0692d699897f38d2c175721ba54
tree5c1635bf22be6c6b14128bc837df945e40272e9b
parent033f0ab85d9cc5e8ae66e07d4740482abb5617ef
systemctl: prolong timeout of "systemctl daemon-reload"

Reloading or reexecuting PID 1 means the unit generators are rerun, which are
timed out at 90s. Make sure the method call asking for the reload is timed out
at twice that, so that the generators have 90s and the reload operation has 90s
too.

This reworks the daemon_reload() call in systemctl, and makes it exclusively
about reloading/reexecing. Previously it was used for other trivial method
calls too, which didn't really help readability. As the code paths are now
sufficiently different, split out the old code into a new function
trivial_method().

This call also does a similar change as
c8ad4efb277c3235d58789170af11bb3c847d655 but for the reload/reexec operation.

Fixes: #3353
src/systemctl/systemctl.c