Skip to content

Commit 2e70b96

Browse files
authored
Merge pull request #109712 from aksjoshi89/OSDOCS-18995
OSDOCS#18995: Microshift Add text
2 parents a6e1a28 + a431d8a commit 2e70b96

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

modules/microshift-auto-recovery-example-rpm-systems.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,16 @@ $ sudo tee /usr/lib/systemd/system/microshift.service.d/10-auto-recovery.conf >
2828
[Unit]
2929
OnFailure=microshift-auto-recovery.service
3030
StartLimitIntervalSec=25s
31+
32+
[Service]
33+
RestartMode=direct
3134
EOF
3235
----
3336
+
3437
** For `StartLimitIntervalSec`, specify a value greater than the default `10s` for slower systems. A value that is too low can result in systemd never marking the `microshift` systemd service as failed, which means that the `OnFailure=` service does not get triggered.
3538

39+
** `RestartMode=direct` prevents systemd from entering failed state on every restart attempt. This ensures `OnFailure` is triggered only after `StartLimitBurst` is exceeded, not on each failure. In systemd v254 (RHEL-10), `OnFailure` behavior changed to trigger on every failure instead of only when restart limits are reached. `RestartMode=direct` restores the v249 behavior. This setting is ignored on RHEL-9.6 (systemd v252) where it does not exist.
40+
3641
. Create the `microshift-auto-recovery.service` file by running the following command:
3742
+
3843
[source,terminal]

0 commit comments

Comments
 (0)