Skip to content

Commit

Permalink
Fix to wait for systemd to update configuration
Browse files Browse the repository at this point in the history
[build]
  • Loading branch information
iliajie committed Apr 21, 2024
1 parent f252296 commit 975ae7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions init/updateboot.pl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@

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 ".
Expand Down

0 comments on commit 975ae7b

Please sign in to comment.