Skip to content

Commit 9838d7e

Browse files
Dreamsorcerervuvova
authored andcommitted
MDEV-36009: Systemd: Restart on OOM
Per systemd/systemd#36529 OOM counts as a on-abnormal condition. To ensure that MariaDB testart on OOM the Restart is changes to on-abnormal which an extension on the current on-abort condition.
1 parent 5e93fe1 commit 9838d7e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

support-files/mariadb.service.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ SendSIGKILL=no
103103

104104
# Restart crashed server only, on-failure would also restart, for example, when
105105
# my.cnf contains unknown option
106-
Restart=on-abort
106+
Restart=on-abnormal
107107
RestartSec=5s
108108

109109
UMask=007

support-files/mariadb@.service.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ SendSIGKILL=no
217217

218218
# Restart crashed server only, on-failure would also restart, for example, when
219219
# my.cnf contains unknown option
220-
Restart=on-abort
220+
Restart=on-abnormal
221221
RestartSec=5s
222222

223223
UMask=007

0 commit comments

Comments
 (0)