Skip to content

Commit

Permalink
systemd: use OnFailureJobMode=replace-irreversibly
Browse files Browse the repository at this point in the history
isolate wasn't working for me so I checked other units on
the system that have OnFailure=emergency.target and noticed
almost all of them use OnFailureJobMode=replace-irreversibly.
It works for me so let's go with it.
  • Loading branch information
dustymabe committed Jan 6, 2020
1 parent 1dffdf9 commit 352af2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion systemd/coreos-installer-reboot.service
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Description=Reboot after CoreOS Installer
After=coreos-installer.service
OnFailure=emergency.target
OnFailureJobMode=isolate
OnFailureJobMode=replace-irreversibly
ConditionPathExists=/run/coreos-installer-reboot

[Service]
Expand Down
2 changes: 1 addition & 1 deletion systemd/coreos-installer.target
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Unit]
Description=CoreOS Installer Target
OnFailure=emergency.target
OnFailureJobMode=isolate
OnFailureJobMode=replace-irreversibly
AllowIsolate=yes

Requires=coreos-installer.service
Expand Down

0 comments on commit 352af2d

Please sign in to comment.