Skip to content

Commit

Permalink
Merge pull request sonic-net#185 from mssonicbld/sonicbld/202205-merge
Browse files Browse the repository at this point in the history
[code sync] Merge code from sonic-net/sonic-buildimage:202205 to 202205
  • Loading branch information
mssonicbld authored Dec 12, 2023
2 parents 375142b + 5c722d0 commit 3996aa8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[Unit]
Description=Reboot cause determination service
Requires=rc-local.service database.service
After=rc-local.service database.service
Requires=rc-local.service
After=rc-local.service
Wants=process-reboot-cause.service

[Service]
Type=oneshot
Expand Down
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

This file was deleted.

0 comments on commit 3996aa8

Please sign in to comment.