Fixed determine/process reboot-cause service dependency (#17462)
Signed-off-by: anamehra <anamehra@cisco.com>
This commit is contained in:
parent
83a3562892
commit
e754b3b32c
@ -1,7 +1,8 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Reboot cause determination service
|
Description=Reboot cause determination service
|
||||||
Requires=rc-local.service database.service
|
Requires=rc-local.service
|
||||||
After=rc-local.service database.service
|
After=rc-local.service
|
||||||
|
Wants=process-reboot-cause.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
|
@ -1,8 +1,16 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Retrieve the reboot cause from the history files and save them to StateDB
|
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
|
After=database.service determine-reboot-cause.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
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
|
ExecStart=/usr/local/bin/process-reboot-cause
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
[Unit]
|
|
||||||
Description=Delays process-reboot-cause until network is stably connected
|
|
||||||
|
|
||||||
[Timer]
|
|
||||||
OnBootSec=1min 30 sec
|
|
||||||
Unit=process-reboot-cause.service
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=timers.target
|
|
Reference in New Issue
Block a user