Skip to Content
Linux Administration Cookbook
book

Linux Administration Cookbook

by Adam K. Dean
December 2018
Beginner
826 pages
22h 54m
English
Packt Publishing
Content preview from Linux Administration Cookbook

How it works...

Both Upstart and traditional init systems rely on the /etc/init.d/ directory and then the various rc directories to instruct them what to start at which runlevel:

rc0.d/ rc1.d/ rc2.d/ rc3.d/ rc4.d/ rc5.d/ rc6.d/ rcS.d/ 

Looking at Debian's inittab we can see the default runlevel as configured:

# The default runlevel.id:2:initdefault:

So, we know we'll likely end up at runlevel 2, meaning we can check the services that start at that runlevel.

The same can be said for Upstart, and on our CentOS system, we can see the default is set to 3:

id:3:initdefault:

Though it must be said, this is literally the only function that inittab serves on Upstart systems.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Linux Security Cookbook - Second Edition

Practical Linux Security Cookbook - Second Edition

Tajinder Kalsi
Mastering Linux Administration

Mastering Linux Administration

Alexandru Calcatinge, Julian Balog

Publisher Resources

ISBN: 9781789342529Supplemental Content