Another fix for wo-kernel service
This commit is contained in:
2
install
2
install
@@ -666,6 +666,7 @@ wo_tweak_kernel() {
|
||||
else
|
||||
sysctl -eq -p /etc/sysctl.d/60-wo-tweaks.conf
|
||||
fi
|
||||
fi
|
||||
if [ ! -x /opt/wo-kernel.sh ]; then
|
||||
{
|
||||
# download and setup wo-kernel systemd service to apply kernel tweaks for netdata and redis on server startup
|
||||
@@ -677,7 +678,6 @@ wo_tweak_kernel() {
|
||||
} >> /var/log/wo/install.log 2>&1
|
||||
fi
|
||||
|
||||
fi
|
||||
LIMIT_CHECK=$(grep "500000" /etc/security/limits.conf)
|
||||
if [ -z "$LIMIT_CHECK" ]; then
|
||||
echo -e "* hard nofile 500000\n* soft nofile 500000\nroot hard nofile 500000\nroot soft nofile 500000\n" >> /etc/security/limits.conf
|
||||
|
||||
Reference in New Issue
Block a user