Help with automatic startup/shutdown scripts

Currently we have to start the IS / Broker manually on our Linux servers. I need help with the scripts that will enable the OS to automatically start the components when the server is restarted.