View Single Post
Posts: 157 | Thanked: 16 times | Joined on Jan 2008
#72
Originally Posted by joepagiii View Post
#! /bin/sh

case "$1" in
start)
sysctl -p > /dev/null
;;

*) echo "Usage: $0 {start}"
exit 1
;;
esac is this correct
no, only put the sysctl key-value pairs in the /etc/sysctl.conf file

e.g. the file would contain:
Code:
net.ipv4.tcp_window_scaling=0
net.ipv4.tcp_sack=0
net.ipv4.tcp_keepalive_time=1800
net.ipv4.tcp_fin_timeout=10
net.ipv4.tcp_timestamps=0
vm.swappiness=25
vm.vfs_cache_pressure=150
net.ipv4.tcp_dsack=0
vm.min_free_kbytes=768