Skip to content

Commit

Permalink
add dependancy of determine-reboot-cause sevice to process-reboot-cau…
Browse files Browse the repository at this point in the history
…se service (sonic-net#11213)

Why I did it
Database container takes long time ( more than 1.5 minutes ) on some vendor platforms.
This makes the determine-reboot-cause starts later than process-reboot-cause service.
And that results in the incorrect reboot-cause determination.

How I did it
Add the dependency of determine-reboot-cause service to process-reboot-cause service
  • Loading branch information
sujinmkang authored Jul 8, 2022
1 parent 1b7fcb4 commit e6463ad
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Unit]
Description=Retrieve the reboot cause from the history files and save them to StateDB
Requires=database.service
After=database.service
Requires=database.service determine-reboot-cause.service
After=database.service determine-reboot-cause.service

[Service]
Type=simple
Expand Down

0 comments on commit e6463ad

Please sign in to comment.