This is a basic skeleton for daemonizing a shell script or possibly any script.