mirror of
https://github.com/extremeshok/xshok-proxmox.git
synced 2026-02-06 10:47:21 +00:00
Enable restart on kernel panic, kernel oops and hardlockup
This commit is contained in:
parent
16e47a83cb
commit
c89efcd1bc
@ -66,6 +66,8 @@ XS_KEXEC="yes"
|
||||
XS_KSMTUNED="yes"
|
||||
# Set language, if chnaged will disable XS_NOAPTLANG
|
||||
XS_LANG="en_US.UTF-8"
|
||||
# Enable restart on kernel panic, kernel oops and hardlockup
|
||||
XS_KERNELPANIC="yes"
|
||||
# Increase max user watches, FD limit, FD ulimit, max key limit, ulimits
|
||||
XS_LIMITS="yes"
|
||||
# Optimise logrotate
|
||||
@ -512,6 +514,21 @@ EOF
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "$XS_KERNELPANIC" == "yes" ] ; then
|
||||
# Enable restart on kernel panic
|
||||
cat <<EOF > /etc/sysctl.d/99-xs-kernelpanic.conf
|
||||
# eXtremeSHOK.com
|
||||
# Enable restart on kernel panic, kernel oops and hardlockup
|
||||
kernel.core_pattern=/var/crash/core.%t.%p
|
||||
# Reboot on kernel panic afetr 10s
|
||||
kernel.panic=10
|
||||
# Panic on kernel oops, kernel exploits generally create an oops
|
||||
kernel.panic_on_oops=1
|
||||
# Panic on a hardlockup
|
||||
kernel.hardlockup_panic=1
|
||||
EOF
|
||||
fi
|
||||
|
||||
if [ "$XS_LIMITS" == "yes" ] ; then
|
||||
## Increase max user watches
|
||||
# BUG FIX : No space left on device
|
||||
|
||||
@ -49,6 +49,8 @@ XS_KEXEC="yes"
|
||||
XS_KSMTUNED="yes"
|
||||
# Set language, if chnaged will disable XS_NOAPTLANG
|
||||
XS_LANG="en_US.UTF-8"
|
||||
# Enable restart on kernel panic, kernel oops and hardlockup
|
||||
XS_KERNELPANIC="yes"
|
||||
# Increase max user watches, FD limit, FD ulimit, max key limit, ulimits
|
||||
XS_LIMITS="yes"
|
||||
# Optimise logrotate
|
||||
|
||||
Loading…
Reference in New Issue
Block a user