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:
Carlos O'Donell 2022-02-22 15:33:20 -05:00
parent da2736300e
commit 6079b05db6
1 changed files with 1 additions and 1 deletions

View File

@ -2069,7 +2069,7 @@ then
local pid = posix.fork()
if pid == 0 then
posix.redirect2null(2)
assert(posix.exec("%{_prefix}/bin/systemctl", "daemon-reexec"))
posix.exec("%{_prefix}/bin/systemctl", "daemon-reexec")
elseif pid > 0 then
posix.wait(pid)
end