-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '202205' of https://github.com/sonic-net/sonic-buildimage …
…into 202205
- Loading branch information
Showing
3 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
5 changes: 3 additions & 2 deletions
5
src/sonic-host-services-data/debian/sonic-host-services-data.determine-reboot-cause.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 9 additions & 1 deletion
10
src/sonic-host-services-data/debian/sonic-host-services-data.process-reboot-cause.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
[Unit] | ||
Description=Retrieve the reboot cause from the history files and save them to StateDB | ||
Requires=database.service determine-reboot-cause.service | ||
PartOf=database.service | ||
After=database.service determine-reboot-cause.service | ||
|
||
[Service] | ||
Type=simple | ||
ExecStartPre=/usr/bin/systemctl is-active database | ||
ExecStartPre=/usr/bin/systemctl is-active determine-reboot-cause | ||
Restart=on-failure | ||
RestartSec=30 | ||
RemainAfterExit=yes | ||
ExecStart=/usr/local/bin/process-reboot-cause | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
9 changes: 0 additions & 9 deletions
9
src/sonic-host-services-data/debian/sonic-host-services-data.process-reboot-cause.timer
This file was deleted.
Oops, something went wrong.