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

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • 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 use rndc command (command-line administration tool for named)
  2. How to Restrict Active Directory Users and Groups to Login to CentOS/RHEL 7 Client
  3. How to Verify if a Disk/Partition is in Use by Oracle ASM, was used by Oracle ASM or is never used by Oracle ASM
  4. Beginners guide to Device Mapper (DM) multipathing
  5. CentOS / RHEL : How to configure alias (virtual interface) of bond interface (bondx:y)
  6. CentOS / RHEL 7 : How to add a kernel parameter only to a specific kernel
  7. How to Change Timezone from CST To EST in CentOS/RHEL 7 Server
  8. Complete Guide to Configuring iSCSI in CentOS / RHEL 7
  9. CentOS / RHE 7 : How to Prevent Users from Using the Last 10 Passwords
  10. CentOS / RHEL 7 : unable to start vsftpd service

You May Also Like

Primary Sidebar

Recent Posts

  • What are different Oracle Database Vault Roles
  • Unable to export realm protected table using data pump
  • Beginners Guide to Oracle Database Vault
  • How to Disable IPv6 on Ubuntu 18.04 Bionic Beaver Linux
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary