Do not assert if systemctl fails to execute.
It should be a soft failure if systemctl fails to execute and we cannot restart all the daemons.
This commit is contained in:
parent
da2736300e
commit
6079b05db6
@ -2069,7 +2069,7 @@ then
|
|||||||
local pid = posix.fork()
|
local pid = posix.fork()
|
||||||
if pid == 0 then
|
if pid == 0 then
|
||||||
posix.redirect2null(2)
|
posix.redirect2null(2)
|
||||||
assert(posix.exec("%{_prefix}/bin/systemctl", "daemon-reexec"))
|
posix.exec("%{_prefix}/bin/systemctl", "daemon-reexec")
|
||||||
elseif pid > 0 then
|
elseif pid > 0 then
|
||||||
posix.wait(pid)
|
posix.wait(pid)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user