add dependancy of determine-reboot-cause sevice to process-reboot-cause service (#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
This commit is contained in:
Sujin Kang 2022-07-08 14:40:33 -07:00 committed by Ying Xie
parent b86b3b0d7d
commit 61a0c3e5ec

View File

@ -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