Tag Archives: cool script

Recommended Cool-script

Linux Server Hack – How to Limit Bandwidth with Linux, TC, and iproute2!

Remember I did a quick post on how to write a load-balancing script (or bandwidth throttling)?

Well, today I found another cool script for limiting bandwidth.  I believe this one if more complicated but if you need it, it might be greatly helpful.

Here’s the code via Adamsinfo.com:

# Set some variables #!/bin/b

Click Here to Read Full Article

1 Comment

Linux Server Hack – How to setup a Shell Script to Auto Restart Apache Httpd Server!

Well, I have been struggling with one of my dedicated servers and just found this cool script that will auto-restart the Apache httpd server if it goes out.

Save the following as restart.sh:

#!/bin/bash # Apache Process Monitor # Restart Apache Web Server When It Goes Down # ------------------------------------------------------------------------- # Copyright (c) 2003 nixCraft project <http://cyberciti.biz/fb/> # This script is licensed under GNU GPL version 2.0 or above # ------------------------------------------------------------------------- # This script is par

Click Here to Read Full Article

Leave a comment