Skip to content
Snippets Groups Projects
Commit 6f302fc8 authored by Daniel Ehlers's avatar Daniel Ehlers
Browse files

gluon-core: force kernel panic on out of memory

In combination with kernel.panic the node will reboot if out of memory.
parent c2adf36e
Branches
Tags
No related merge requests found
sysctl_set() {
sed -i "/^${1//./\.}=/d" /etc/sysctl.conf
echo "${1}=$2" >> /etc/sysctl.conf
}
#!/bin/sh
. /lib/gluon/functions/sysctl.sh
sysctl_set vm.panic_on_oom 1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment