I have a java process on an web application that keeps turning into a zombie. My new task is to kill the zombie and restarted the web application. Read the rest of this entry »
April 1, 2010
Zombie Processes
March 22, 2010
EC2 -> S3 Cloud Backup
I have been backing up my EC2 cloud servers to S3 using a simple tar script to get the main data from the EBS mounts on each cloud server. I use cron to run the backup each night, saving the data first to the EBS mounts in an /apps/backup directory, then I copy the backup to the S3 storage. Read the rest of this entry »
March 22, 2010
BASH IF/ELSE Mail Script
I had a request to track when a leased domain was expiring after we were finished using it. Instead of manually giving status twice a day I decided to create a script to do the work for me. The script is pretty well documented already, but the basic process is checking DOMAIN1.COM in a WHOIS search and analyzing the results. If the DNS names servers point back to DOMAIN2.COM, I know that the domain is still registered to us and is still alive. To check the WHOIS results, I am running a grep for DOMAIN2.COM, and if found the built-in command success/error shows a “0″. If the results do not include DOMAIN2.COM, the command with error with a “1″. Based on the error code value, I send an email telling if the domain is UP or DOWN. Read the rest of this entry »
