-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed determine/process reboot-cause service dependency
Signed-off-by: anamehra <anamehra@cisco.com>
- Loading branch information
Showing
3 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
7 changes: 4 additions & 3 deletions
7
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
[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 | ||
ConditionPathExists=!/tmp/determine-reboot-cause | ||
|
||
[Service] | ||
Type=oneshot | ||
RemainAfterExit=yes | ||
ExecStart=/usr/local/bin/determine-reboot-cause | ||
|
||
ExecStartPost=/usr/bin/touch /tmp/determine-reboot-cause | ||
[Install] | ||
WantedBy=multi-user.target |
3 changes: 2 additions & 1 deletion
3
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,9 @@ | ||
[Unit] | ||
Description=Retrieve the reboot cause from the history files and save them to StateDB | ||
Requires=database.service determine-reboot-cause.service | ||
Requires=database.service | ||
After=database.service determine-reboot-cause.service | ||
|
||
[Service] | ||
Type=simple | ||
RemainAfterExit=yes | ||
ExecStart=/usr/local/bin/process-reboot-cause |
2 changes: 2 additions & 0 deletions
2
data/debian/sonic-host-services-data.process-reboot-cause.timer
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