How to run commands at shutdown on Linux: 
Linux and Unix systems have long made it pretty easy to run a command on boot. Just add your command to /etc/rc.local and away you go. But as it turns out, running a command on shutdown is a little more complicated.
read more: Opensource.com bcotton
Supporting Open Source.
Have you tried: Visiting Port Elizabeth?
