In managing Unix systems, you will often have occasion to have a process or action performed at boot time. There are several ways of accomplishing this goal, but the right way is to create an init script and configure it to run at the proper run levels. Here’s how to do that under Ubuntu. A valid LSB (Linux Standard Base) Init Script has 4 components: Provide, at least, the following actions: start, stop, restart, force-reload, and status (actually optional) Return proper exit status codes Document runtime dependencies Log messages using the Init.d functions: log_success_msg, log_failure_msg and log_warning_msg (optional) To document runtime dependencies you’ll have to define a header on your script....
I do a lot of speaking engagements for ServiceNow, here some I've done recently: