O'Reilly logo

Linux and Unix Shell Programming by David Tansley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

28.6. Other methods of starting and shutting down services

If you do not want to mess around with the /etc/inittab file, there is another method open to you. Most systems have an rc.local file, located in or around /etc. This is a script file that kicks off after all the inittab and rc.scripts have been started. You can enter any commands in this file if you wish, or add an entry in to call your favourite start-up script.

Some systems also ship a script file called shutdown in /bin though more generally in /usr/sbin. Use this to shut down your favourite services when the shutdown command is issued.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required