Skip to content
Snippets Groups Projects
Commit 14d0d522 authored by Nils Schneider's avatar Nils Schneider
Browse files

Merge pull request #19 from sargon/master

gluon-core: force kernel panic on out of memory

This also adds /lib/gluon/functions/sysctl.sh for setting sysctl options.
parents c31df315 6f302fc8
No related branches found
No related tags found
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.
Finish editing this message first!
Please register or to comment