Tag Archives: root root

Recommended Root-root

Debian Hack – How to Setup your Mirror!

This might not be for all of you but for those Linuxers out there, here’s an example of how to setup your mirror:

(Mirror is a way of replicating one server to another btw if you didn’t know.)

To download the mirrors I use this script: <script sync_mirror.sh>

#!/bin/bash OPTIONS="--nosource --progress --postcleanup --ignore-release-gpg --ignore-small-errors --pdiff=none"; MIRROR=`basename ${0} | cut -f2 -d "_"` DEST="/home/debian-mirror" case "${MIRROR}" in "debian" ) METHOD="--method=http" HOST="--host=ftp.d

Click Here to Read Full Article

Leave a 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