Commit 2e79a18f authored by Christoph Berg's avatar Christoph Berg

pg_ctlcluster: OOM-protect 9.0 as well.

parent 3e3f23d1
......@@ -22,6 +22,7 @@ postgresql-common (170) UNRELEASED; urgency=medium
variables when creating the initial database cluster. (Closes: #791526)
* Add /var/log/postgresql to /usr/lib/tmpfiles.d/postgresql.conf.
* Also set OOMScoreAdjust in postgresql@.service.
* pg_ctlcluster: OOM-protect 9.0 as well.
* pg_lsclusters: Color online/down clusters green/red.
* supported-versions: Accept DEB_PG_SUPPORTED_VERSIONS as well.
* Ship /etc/postgresql/ in postgresql-common. (Closes: #801140)
......
......@@ -430,9 +430,9 @@ if ($action ne 'stop' && $info{'statstempdir'} && ! -d $info{'statstempdir'}) {
}
if ($> == 0) {
# have postgres start with increased OOM killer protection; 9.1 and
# have postgres start with increased OOM killer protection; 9.0 and
# later has builtin support for resetting the adjustment of child processes
if ($action eq 'start' and $version >= '9.1' and not $PgCommon::rpm) {
if ($action eq 'start' and $version >= '9.0' and not $PgCommon::rpm) {
if (-w '/proc/self/oom_score_adj') {
open F, '>/proc/self/oom_score_adj';
print F "-900\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment