Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed determine/process reboot-cause service dependency #17406

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.