The scripts in /etc/init.d are working examples of what you are trying to do.
-- Neil Watson | Debian Linux System Administrator | Uptime 2 days http://watson-wilson.ca --To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]