Linux Service Management Made Easy with systemd: Advanced techniques to effectively manage, control, and monitor Linux systems and services

Linux Service Management Made Easy with systemd: Advanced techniques to effectively manage, control, and monitor Linux systems and services book cover

Linux Service Management Made Easy with systemd: Advanced techniques to effectively manage, control, and monitor Linux systems and services

Author(s): Donald A. Tevault (Author)

  • Publisher: Packt Publishing
  • Publication Date: 3 Feb. 2022
  • Language: English
  • Print length: 420 pages
  • ISBN-10: 1801811644
  • ISBN-13: 9781801811644

Book Description

A comprehensive guide for teaching system administrators, developers, and security professionals how to create their own systemd units and maintain system security

Key Features

  • Maintain and troubleshoot systemd services with ease
  • Learn to create, modify, and reload service files and use systemd utilities
  • Use cgroups to control resource usage and enhance security

Book Description

Linux Service Management Made Easy with systemd will provide you with an in-depth understanding of systemd, so that you can set up your servers securely and efficiently.This is a comprehensive guide for Linux administrators that will help you get the best of systemd, starting with an explanation of the fundamentals of systemd management.You’ll also learn how to edit and create your own systemd units, which will be particularly helpful if you need to create custom services or timers and add features or security to an existing service.

Next, you’ll find out how to analyze and fix boot-up challenges and set system parameters. An overview of cgroups that’ll help you control system resource usage for both processes and users will also be covered, alongside a practical demonstration on how cgroups are structured, spotting the differences between cgroups Version 1 and 2, and how to set resource limits on both.

Finally, you’ll learn about the systemd way of performing time-keeping, networking, logging, and login management. You’ll discover how to configure servers accurately and gather system information to analyze system security and performance.

By the end of this Linux book, you’ll be able to efficiently manage all aspects of a server running the systemd init system.

What you will learn

  • Use basic systemd utilities to manage a system
  • Create and edit your own systemd units
  • Create services for Podman-Docker containers
  • Enhance system security by adding security-related parameters
  • Find important information with journald
  • Analyze boot-up problems
  • Configure system settings with systemd utilities

Who this book is for

This book is best suited for Linux administrators who want to learn more about maintaining and troubleshooting Linux servers. It will also be useful for aspiring administrators studying for a Linux certification exam, developers looking to learn how to create systemd unit files, and security administrators who want to understand the security settings that can be used in systemd units and how to control resource usage with cgroups. Before you dive into this book, you’ll need a solid working knowledge of basic Linux commands.

Table of Contents

  1. Understanding the Need for systemd
  2. Understanding systemd Directories and Files
  3. Understanding Service, Path, and Socket Units
  4. Controlling systemd Services
  5. Creating and Editing Services
  6. Understanding systemd Targets
  7. Understanding systemd Timers
  8. Understanding the systemd Boot Process
  9. Setting System Parameters
  10. Understanding Shutdown and Reboot Commands
  11. Understanding cgroups Version 1
  12. Controlling Resource Usage with cgroups Version 1
  13. Understanding cgroup Version 2
  14. Using journald
  15. Using systemd-networkd and systemd-resolved
  16. Understanding Timekeeping with systemd
  17. Understanding systemd and Bootloaders
  18. Understanding systemd-logind

Editorial Reviews

Review

“By providing a clear history of Linux init systems and highlighting the limitations of sysV init and Upstart, this book sets the stage for understanding the motivation behind systemd’s design and features. It offers a balanced overview of systemd’s strengths and drawbacks while summarizing various Linux initialization approaches, making it an excellent foundation for further exploration.

The book presents systemd’s architecture in great detail, covering essential services for networking, timekeeping, logging, and boot management. It also explains how to develop and configure custom services and effectively use systemd’s logging capabilities.

Advanced chapters delve into topics such as security, analyzing boot performance, and resource management using cgroups (v1 and v2), Docker, and Podman containers. Practical command-line examples, scripts, and service definitions are provided throughout, and each chapter includes a well-curated list of further reading resources.

I recommend this book to both system administrators and developers working with systemd-based systems.”

Roman Storozhenko, Senior Linux Kernel Developer at Intel Corporation, Linux Kernel Contributor, Firmware Engineer, Intel® Xeon® RDT Expert & Contributor, RISC-V Associate, Technical Author, Industry Awards Judge

About the Author

Donald A. Tevault – but you can call him Donnie – got involved with Linux way back in 2006, and has been working with it ever since. He holds the Linux Professional Institute Level 3-Security certification, and the GIAC Incident Handler certification. Donnie is a professional Linux trainer, and thanks to the magic of the internet, teaches Linux classes literally the world over from the comfort of his living room. He’s also a Linux security researcher for an IoT security company.

View on Amazon

未经允许不得转载:Wow! eBook » Linux Service Management Made Easy with systemd: Advanced techniques to effectively manage, control, and monitor Linux systems and services