• Skip to primary navigation
  • Skip to content
  • Skip to primary sidebar

The Geek Diary

HowTos | Basics | Concepts

  • Solaris
    • Solaris 11
    • SVM
    • ZFS
    • Zones
    • LDOMs
    • Hardware
  • Linux
    • CentOS/RHEL 7
    • RHCSA notes
    • SuSE Linux Enterprise
    • Linux Services
  • VCS
    • VxVM
  • Interview Questions
  • oracle
    • ASM
    • mysql
    • RAC
    • oracle 12c
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Hadoop
    • Hortonworks HDP
      • HDPCA
    • Cloudera
      • CCA 131

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 disable firewalld and and switch to iptables in CentOS / RHEL 7
  2. UNIX / Linux : How to delete root equivalent user (Non-Root User with UID 0)
  3. How to limit maximum ssh connections in CentOS/RHEL
  4. CentOS / RHEL 6 : How to configure kdump
  5. How to Configure Multiple MySQL Servers On One System Using mysqld_multi
  6. How to use the “screen” command in Linux
  7. Linux OS Service ‘NetworkManager’
  8. lvremove Command Fails With Error “LVM – Can’t remove open logical volume”
  9. Linux OS Service ‘NetFS’
  10. “Abort command issued nexus” error messages in /var/log/messages file

You May Also Like

Primary Sidebar

Recent Posts

  • Linux OS Service ‘cups’
  • “Warning: RPMDB altered outside of yum.” – On installing/updating/erasing a package using YUM command
  • How to Generate Unique IDs For MysQL Cluster Backups
  • Oracle 11g – New ASM features
  • ASM Fast Mirror Resync Feature – Example To Simulate Transient Disk Failure And Restore Disk
  • Archives
  • Contact Us
  • Copyright

© 2019 · The Geek Diary