• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

CentOS / RHEL 7 : Beginners guide to systemd

by admin

systemd is the new system and service manager in RHEL 7. It is backward compatible with SysV init scripts used by previous versions of Oracle Linux including RHEL 6. systemd is the first process that starts after the system boots, and is the final process that is running when the system shuts down.

Features

– Speeds up booting by loading services concurrently.
– Allows you to manage various types of units on a system, example:

  • services (name.service)
  • targets (name.target)
  • devices (name.device)
  • file system mount points (name.mount)
  • sockets (name.socket)

– Snapshotting of the system state and restoration of the system state from a snapshot is supported.
– Mount points can be configured as systemd targets.

systemd unit types

Below is a most commonly used list of systemd unit types.

unit function extention
service unit Start and control daemons and the processes they consist of. 
 .service
target unit replaces sysV init run levels. .target
mount unit Control mount points in the file system. .mount
device unit Expose kernel devices in systemd .device
Snapshot unit Can be used to temporarily save the state of the set of systemd units, which can later be restored by activating the saved snapshot unit. .snapshot
swap unit Encapsulate memory swap partitions or swap files. .swap

systemd configuration files

systemd units are defined by unit configuration files located in the following directories :
/usr/lib/systemd/system
systemd units distributed with installed RPM packages.
/run/systemd/system
systemd units created at runtime. This directory takes precedence over the directory with installed service units.
/etc/systemd/system
systemd units created and managed by the system administrator. This directory takes precedence over the directory with runtime units.

CentOS / RHEL 7 : Beginners guide to systemd targets (replacement of SysV init run levels)
CentOS / RHEL 7 : Beginners guide to systemd service units
CentOS / RHEL 7 : How to set default target (default runlevel)
CentOS / RHEL 7 : How to change runlevels (targets) with systemd

Filed Under: CentOS/RHEL 7, Linux

Some more articles you might also be interested in …

  1. How to Identify NIS Authenticated Users
  2. drush: A command-line shell and scripting interface for Drupal
  3. e2undo Command Examples in Linux
  4. How to transfer files securely using sftp (examples included)
  5. How to Reduce an LVM volume on Ubuntu
  6. pwd Command Examples in Linux
  7. chcon Command Examples in Linux
  8. guake Command Examples in Linux
  9. “git whatchanged” Command Examples
  10. qjoypad Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • “glab repo” Command Examples
  • “glab release” Command Examples
  • “glab pipeline” Command Examples
  • “glab mr” Command Examples

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright