Fix to wait for systemd to update configuration

[build]
This commit is contained in:
Ilia Ross
2024-04-21 14:53:03 +03:00
parent f252296471
commit 975ae7b497

View File

@ -36,6 +36,7 @@ if ($product) {
copy_source_dest($temp, "$systemd_root/$product.service");
system("systemctl daemon-reload >/dev/null 2>&1");
sleep(3); # Wait for systemd to update configuration
if ($status eq "disabled") {
system("systemctl disable ".