The following is my Ubuntu 12.04 /etc/init.d startup script.