Skip to Content
Linux Bible, 8th Edition
book

Linux Bible, 8th Edition

by Christopher Negus, Christine Bresnahan
September 2012
Beginner
864 pages
22h 9m
English
Wiley
Content preview from Linux Bible, 8th Edition

Chapter 15

Starting and Stopping Services

In This Chapter
Understanding the various Linux init daemons
Auditing Linux init daemon–controlled services
Stopping and starting services
Changing the Linux server's default runlevel
Removing services

A service, also called a daemon, is a running program or a process that provides a particular function. Your Linux server's primary job is to offer services. As a Linux server administrator, one of your primary jobs is managing these services.

The cupsd daemon is an example of a service your Linux server can provide. This service is responsible for printing and is covered in Chapter 16, “Configuring a Print Server.”

How do you start the cupsd daemon? How do you stop it? How do you get it to be started at system boot time? What if you have a special program you want to start on your server? How do you get it to start at boot time? All these questions and more will be answered in this chapter. Soon, you will have an excellent grasp on managing these services.

Understanding the Linux init Daemon

In order to understand service management, you need to understand the init daemon. The init daemon can be thought of as the “mother of all processes.” This daemon is the first process to be started by the kernel on the Linux server. The Linux kernel has a process ID (PID) of 0. Thus, the init daemon has a parent process ID (PPID) of 0, and a PID of 1. Once started, init is responsible for spawning (launching) processes configured to be started at the ...

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.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Linux Bible, 9th Edition

Linux Bible, 9th Edition

Christopher Negus
Linux Bible, 11th Edition

Linux Bible, 11th Edition

Christopher Negus
Linux Bible, 10th Edition

Linux Bible, 10th Edition

Christopher Negus

Publisher Resources

ISBN: 9781118282878Purchase book