Skip to content

Commit

Permalink
Avoid manual reboot for network parameters to take effect
Browse files Browse the repository at this point in the history
  • Loading branch information
samkumar committed Jul 16, 2021
1 parent 11c6ed6 commit 128c32d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/install_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ do
echo "net.ipv4.tcp_keepalive_time = 240" | sudo tee -a /etc/sysctl.conf
echo "net.ipv4.tcp_keepalive_intvl = 65" | sudo tee -a /etc/sysctl.conf
echo "net.ipv4.tcp_keepalive_probes = 5" | sudo tee -a /etc/sysctl.conf

# Reload /etc/sysctl.conf (so you don't have to reboot to effect the above changes)
sudo sysctl -p /etc/sysctl.conf
;;
*)
echo "Unknown command-line flag" $flag
Expand Down
2 changes: 2 additions & 0 deletions scripts/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ fi
mkdir -p ~/work
sudo mount ${DISK_DEVICE} ~/work
sudo chown $(whoami):$(whoami) ~/work
# If not using a pre-installed image, this line will fail, as /opt won't exist.
# It doesn't harm anything, so I didn't bother wrapping it in the appropriate "if" statement.
cp -r /opt/* ~/work

mkdir -p ~/work/scratch
Expand Down

0 comments on commit 128c32d

Please sign in to comment.