Skip to content

Commit 839828e

Browse files
Dreamsorcerergrooverdan
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 55efe47 commit 839828e

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
@@ -105,7 +105,7 @@ SendSIGKILL=no
105105

106106
# Restart crashed server only, on-failure would also restart, for example, when
107107
# my.cnf contains unknown option
108-
Restart=on-abort
108+
Restart=on-abnormal
109109
RestartSec=5s
110110

111111
UMask=007

support-files/mariadb@.service.in

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

220220
# Restart crashed server only, on-failure would also restart, for example, when
221221
# my.cnf contains unknown option
222-
Restart=on-abort
222+
Restart=on-abnormal
223223
RestartSec=5s
224224

225225
UMask=007

0 commit comments

Comments
 (0)