Skip to content

Commit

Permalink
Fixed determine/process reboot-cause service dependency
Browse files Browse the repository at this point in the history
Signed-off-by: anamehra <anamehra@cisco.com>
  • Loading branch information
anamehra committed Nov 23, 2023
1 parent 5dcd1e5 commit 5bef843
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
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
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
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
[Unit]
Description=Delays process-reboot-cause until network is stably connected
PartOf=process-reboot-cause.service

[Timer]
OnUnitActiveSec=0 sec
OnBootSec=1min 30 sec
Unit=process-reboot-cause.service

Expand Down

0 comments on commit 5bef843

Please sign in to comment.