Opensourcetechブログ

OpensourcetechによるNGINX/Zabbix/Neo4j/Linuxなどオープンソース技術に関するブログです。

chkconfigとsystemctlの対比


LinuCエヴァンジェリストの鯨井貴博@opensourcetechです。

CentOS6で利用していたchkconfigと、CentOS7から使っているsystemctlの対比に関するメモです。

まず、chkconfigは「chkconfig --list」とすると、
OS起動時に立ち上がるプログラム(ランレベル毎)が分かるようになっています。
「chkconfig プログラム on/off」で起動する/起動しないの設定ができます。
f:id:opensourcetech:20200717133312p:plain

CentOS7以降のsystemctlでも同様のことを「systemctl」でできますが、
chkconfigよりオプションで細かい使い分けができるようになっています。
「 systemctl list-unit-files --type service」サービスを一覧表示し、各サービスが有効かどうかを確認する

[root@db01 ~]# systemctl list-unit-files --type service
UNIT FILE                                     STATE
arp-ethers.service                            disabled
auditd.service                                enabled
auth-rpcgss-module.service                    static
autovt@.service                               enabled
blk-availability.service                      disabled
brandbot.service                              static
chrony-dnssrv@.service                        static
chrony-wait.service                           disabled
chronyd.service                               enabled
console-getty.service                         disabled
console-shell.service                         disabled
container-getty@.service                      static
corosync-notifyd.service                      disabled
corosync.service                              enabled
cpupower.service                              disabled
crm_mon.service                               disabled
crond.service                                 enabled
dbus-org.fedoraproject.FirewallD1.service     enabled
dbus-org.freedesktop.hostname1.service        static
dbus-org.freedesktop.import1.service          static
dbus-org.freedesktop.locale1.service          static
dbus-org.freedesktop.login1.service           static
dbus-org.freedesktop.machine1.service         static
dbus-org.freedesktop.nm-dispatcher.service    enabled
dbus-org.freedesktop.timedate1.service        static
dbus.service                                  static
debug-shell.service                           disabled
dm-event.service                              static
dracut-cmdline.service                        static
dracut-initqueue.service                      static
dracut-mount.service                          static
dracut-pre-mount.service                      static
dracut-pre-pivot.service                      static
dracut-pre-trigger.service                    static
dracut-pre-udev.service                       static
dracut-shutdown.service                       static
drbd.service                                  enabled
ebtables.service                              disabled
emergency.service                             static
firewalld.service                             enabled
fstrim.service                                static
getty@.service                                enabled
gssproxy.service                              disabled
halt-local.service                            static
ifcheckd.service                              disabled
initrd-cleanup.service                        static
initrd-parse-etc.service                      static
initrd-switch-root.service                    static
initrd-udevadm-cleanup-db.service             static
ipmi.service                                  disabled
ipmievd.service                               disabled
iprdump.service                               disabled
iprinit.service                               disabled
iprupdate.service                             disabled
irqbalance.service                            enabled
kdump.service                                 enabled
kmod-static-nodes.service                     static
logd.service                                  disabled
lvm2-lvmetad.service                          static
lvm2-lvmpolld.service                         static
lvm2-monitor.service                          enabled
lvm2-pvscan@.service                          static
messagebus.service                            static
microcode.service                             enabled
NetworkManager-dispatcher.service             enabled
NetworkManager-wait-online.service            enabled
NetworkManager.service                        enabled
nfs-blkmap.service                            disabled
nfs-config.service                            static
nfs-idmap.service                             static
nfs-idmapd.service                            static
nfs-lock.service                              static
nfs-mountd.service                            static
nfs-rquotad.service                           disabled
nfs-secure.service                            static
nfs-server.service                            disabled
nfs-utils.service                             static
nfs.service                                   disabled
nfslock.service                               static
pacemaker.service                             enabled
pcsd.service                                  enabled
plymouth-halt.service                         disabled
plymouth-kexec.service                        disabled
plymouth-poweroff.service                     disabled
plymouth-quit-wait.service                    disabled
plymouth-quit.service                         disabled
plymouth-read-write.service                   disabled
plymouth-reboot.service                       disabled
plymouth-start.service                        disabled
plymouth-switch-root.service                  static
pm_logconv.service                            disabled
polkit.service                                static
postfix.service                               enabled
qemu-guest-agent.service                      enabled
quotaon.service                               static
rc-local.service                              static
rdisc.service                                 disabled
rescue.service                                static
rhel-autorelabel-mark.service                 enabled
rhel-autorelabel.service                      enabled
rhel-configure.service                        enabled
rhel-dmesg.service                            enabled
rhel-domainname.service                       enabled
rhel-import-state.service                     enabled
rhel-loadmodules.service                      enabled
rhel-readonly.service                         enabled
rpc-gssd.service                              static
rpc-rquotad.service                           disabled
rpc-statd-notify.service                      static
rpc-statd.service                             static
rpcbind.service                               enabled
rpcgssd.service                               static
rpcidmapd.service                             static
rsyslog.service                               enabled
selinux-policy-migrate-local-changes@.service static
serial-getty@.service                         disabled
sshd-keygen.service                           static
sshd.service                                  enabled
sshd@.service                                 static
systemd-ask-password-console.service          static
systemd-ask-password-plymouth.service         static
systemd-ask-password-wall.service             static
systemd-backlight@.service                    static
systemd-binfmt.service                        static
systemd-bootchart.service                     disabled
systemd-firstboot.service                     static
systemd-fsck-root.service                     static
systemd-fsck@.service                         static
systemd-halt.service                          static
systemd-hibernate-resume@.service             static
systemd-hibernate.service                     static
systemd-hostnamed.service                     static
systemd-hwdb-update.service                   static
systemd-hybrid-sleep.service                  static
systemd-importd.service                       static
systemd-initctl.service                       static
systemd-journal-catalog-update.service        static
systemd-journal-flush.service                 static
systemd-journald.service                      static
systemd-kexec.service                         static
systemd-localed.service                       static
systemd-logind.service                        static
systemd-machine-id-commit.service             static
systemd-machined.service                      static
systemd-modules-load.service                  static
systemd-nspawn@.service                       disabled
systemd-poweroff.service                      static
systemd-quotacheck.service                    static
systemd-random-seed.service                   static
systemd-readahead-collect.service             enabled
systemd-readahead-done.service                indirect
systemd-readahead-drop.service                enabled
systemd-readahead-replay.service              enabled
systemd-reboot.service                        static
systemd-remount-fs.service                    static
systemd-rfkill@.service                       static
systemd-shutdownd.service                     static
systemd-suspend.service                       static
systemd-sysctl.service                        static
systemd-timedated.service                     static
systemd-tmpfiles-clean.service                static
systemd-tmpfiles-setup-dev.service            static
systemd-tmpfiles-setup.service                static
systemd-udev-settle.service                   static
systemd-udev-trigger.service                  static
systemd-udevd.service                         static
systemd-update-done.service                   static
systemd-update-utmp-runlevel.service          static
systemd-update-utmp.service                   static
systemd-user-sessions.service                 static
systemd-vconsole-setup.service                static
tcsd.service                                  disabled
teamd@.service                                static
tuned.service                                 enabled
wpa_supplicant.service                        disabled

175 unit files listed.


「systemctl list-dependencies --after」指定されたユニットの前に開始するよう命令されるサービスを一覧表示する

[root@db01 ~]# systemctl list-dependencies --after
default.target
● tqchronyd.service
● tqcorosync.service
● tqcrond.service
● tqdbus.service
● tqdrbd.service
● tqfirewalld.service
● tqirqbalance.service
● tqnetwork.service
● tqNetworkManager.service
● tqoracle-xe.service
● tqpacemaker.service
● tqpcsd.service
● tqplymouth-quit-wait.service
● tqplymouth-quit.service
● tqpostfix.service
● tqrescue.service
● tqrhel-configure.service
● tqrsyslog.service
● tqsshd.service
● tqsystemd-logind.service
● tqsystemd-user-sessions.service
● tqtuned.service
● tqbasic.target
● x tqsystemd-ask-password-plymouth.path
● x tqpaths.target
● x x tqsystemd-ask-password-console.path
● x x mqsystemd-ask-password-wall.path
● x tqslices.target
● x x tq-.slice
● x x tqsystem.slice
● x x mquser.slice
● x tqsockets.target
● x x tqdbus.socket
● x x tqrpcbind.socket
● x x tqsshd.socket
● x x tqsyslog.socket
● x x tqsystemd-initctl.socket
● x x tqsystemd-journald.socket
● x x tqsystemd-shutdownd.socket
● x x tqsystemd-udevd-control.socket
● x x mqsystemd-udevd-kernel.socket
● x mqsysinit.target
● x   tqauditd.service
● x   tqdev-hugepages.mount
● x   tqdev-mqueue.mount
● x   tqemergency.service
● x   tqkmod-static-nodes.service
● x   tqplymouth-read-write.service
● x   tqproc-sys-fs-binfmt_misc.automount
● x   tqrhel-autorelabel-mark.service
● x   tqrhel-autorelabel.service
● x   tqrhel-domainname.service
● x   tqrhel-import-state.service
● x   tqrhel-loadmodules.service
● x   tqselinux-policy-migrate-local-changes@targeted.service
● x   tqsys-fs-fuse-connections.mount
● x   tqsys-kernel-config.mount
● x   tqsys-kernel-debug.mount
● x   tqsystemd-binfmt.service
● x   tqsystemd-firstboot.service
● x   tqsystemd-hwdb-update.service
● x   tqsystemd-journal-catalog-update.service
● x   tqsystemd-journald.service
● x   tqsystemd-machine-id-commit.service
● x   tqsystemd-modules-load.service
● x   tqsystemd-random-seed.service
● x   tqsystemd-readahead-collect.service
● x   tqsystemd-readahead-replay.service
● x   tqsystemd-sysctl.service
● x   tqsystemd-tmpfiles-setup-dev.service
● x   tqsystemd-tmpfiles-setup.service
● x   tqsystemd-udev-trigger.service
● x   tqsystemd-udevd.service
● x   tqsystemd-update-done.service
● x   tqsystemd-update-utmp.service
● x   tqsystemd-vconsole-setup.service
● x   tqcryptsetup.target
● x   tqemergency.target
● x   x tqemergency.service
● x   x tqrhel-import-state.service
● x   x mqrhel-readonly.service
● x   tqlocal-fs.target
● x   x tq-.mount
● x   x tqboot.mount
● x   x tqmnt-drbd.mount
● x   x tqrhel-readonly.service
● x   x tqrun-user-0.mount
● x   x tqrun-user-1000.mount
● x   x tqsys-kernel-config.mount
● x   x tqsystemd-fsck-root.service
● x   x tqsystemd-remount-fs.service
● x   x tqtmp.mount
● x   x mqlocal-fs-pre.target
● x   x   tqdm-event.service
● x   x   tqlvm2-monitor.service
● x   x   tqsystemd-remount-fs.service
● x   x   mqsystemd-tmpfiles-setup-dev.service
● x   mqswap.target
● x     tqdev-centos-swap.swap
● x     tqdev-disk-by\x2did-dm\x2dname\x2dcentos\x2dswap.swap
● x     tqdev-disk-by\x2did-dm\x2duuid\x2dLVM\x2d0obMdzjktDKKbxmlQ0vr6qklG7BkYVl5bZnxwTaWCLd8grIbGx2Lt.
● x     tqdev-disk-by\x2duuid-37868373\x2d7fa8\x2d489f\x2d9691\x2d3fd4c4eb988d.swap
● x     tqdev-dm\x2d1.swap
● x     mqdev-mapper-centos\x2dswap.swap
● tqgetty.target
● x mqgetty@tty1.service
● tqnfs-client.target
● x tqgssproxy.service
● x mqrpc-gssd.service
● mqrescue.target
●   tqrescue.service
●   mqsysinit.target
●     tqauditd.service
●     tqdev-hugepages.mount
●     tqdev-mqueue.mount
●     tqemergency.service
●     tqkmod-static-nodes.service
●     tqplymouth-read-write.service
●     tqproc-sys-fs-binfmt_misc.automount
●     tqrhel-autorelabel-mark.service
●     tqrhel-autorelabel.service
●     tqrhel-domainname.service
●     tqrhel-import-state.service
●     tqrhel-loadmodules.service
●     tqselinux-policy-migrate-local-changes@targeted.service
●     tqsys-fs-fuse-connections.mount
●     tqsys-kernel-config.mount
●     tqsys-kernel-debug.mount
●     tqsystemd-binfmt.service
●     tqsystemd-firstboot.service
●     tqsystemd-hwdb-update.service
●     tqsystemd-journal-catalog-update.service
●     tqsystemd-journald.service
●     tqsystemd-machine-id-commit.service
●     tqsystemd-modules-load.service
●     tqsystemd-random-seed.service
●     tqsystemd-readahead-collect.service
●     tqsystemd-readahead-replay.service
●     tqsystemd-sysctl.service
●     tqsystemd-tmpfiles-setup-dev.service
●     tqsystemd-tmpfiles-setup.service
●     tqsystemd-udev-trigger.service
●     tqsystemd-udevd.service
●     tqsystemd-update-done.service
●     tqsystemd-update-utmp.service
●     tqsystemd-vconsole-setup.service
●     tqcryptsetup.target
●     tqemergency.target
●     x tqemergency.service
●     x tqrhel-import-state.service
●     x mqrhel-readonly.service
●     tqlocal-fs.target
●     x tq-.mount
●     x tqboot.mount
●     x tqmnt-drbd.mount
●     x tqrhel-readonly.service
●     x tqrun-user-0.mount
●     x tqrun-user-1000.mount
●     x tqsys-kernel-config.mount
●     x tqsystemd-fsck-root.service
●     x tqsystemd-remount-fs.service
●     x tqtmp.mount
●     x mqlocal-fs-pre.target
●     x   tqdm-event.service
●     x   tqlvm2-monitor.service
●     x   tqsystemd-remount-fs.service
●     x   mqsystemd-tmpfiles-setup-dev.service
●     mqswap.target
●       tqdev-centos-swap.swap
●       tqdev-disk-by\x2did-dm\x2dname\x2dcentos\x2dswap.swap
●       tqdev-disk-by\x2did-dm\x2duuid\x2dLVM\x2d0obMdzjktDKKbxmlQ0vr6qklG7BkYVl5bZnxwTaWCLd8grIbGx2Lt.
●       tqdev-disk-by\x2duuid-37868373\x2d7fa8\x2d489f\x2d9691\x2d3fd4c4eb988d.swap
●       tqdev-dm\x2d1.swap
●       mqdev-mapper-centos\x2dswap.swap


「systemctl list-dependencies --before」指定されたユニットの後に開始するように命令されるサービスを一覧表示する

[root@db01 ~]# systemctl list-dependencies --before
default.target
● tqsystemd-readahead-done.service
● tqsystemd-readahead-done.timer
● tqsystemd-update-utmp-runlevel.service
● mqgraphical.target
●   mqsystemd-update-utmp-runlevel.service


「systemctl --all」すべてのユニットを一覧表示する

[root@db01 ~]# systemctl --all
  UNIT                              LOAD      ACTIVE     SUB       JOB   DESCRIPTION
  proc-sys-fs-binfmt_misc.automount loaded    active     waiting         Arbitrary Executable File Form
  dev-block-8:2.device              loaded    active     plugged         LVM PV OgMPDL-wIE0-OxZd-bJos-q
  dev-cdrom.device                  loaded    active     plugged         VBOX_CD-ROM
  dev-centos-root.device            loaded    active     plugged         /dev/centos/root
  dev-centos-swap.device            loaded    active     plugged         /dev/centos/swap
  dev-disk-by\x2did-ata\x2dVBOX_CD\x2dROM_VB2\x2d01700376.device loaded    active     plugged         V
  dev-disk-by\x2did-ata\x2dVBOX_HARDDISK_VB9c4ca621\x2d78f15481.device loaded    active     plugged
  dev-disk-by\x2did-ata\x2dVBOX_HARDDISK_VB9c4ca621\x2d78f15481\x2dpart1.device loaded    active     pl
  dev-disk-by\x2did-ata\x2dVBOX_HARDDISK_VBf4c4ff9f\x2d2818441c.device loaded    active     plugged
  dev-disk-by\x2did-ata\x2dVBOX_HARDDISK_VBf4c4ff9f\x2d2818441c\x2dpart1.device loaded    active     pl
  dev-disk-by\x2did-ata\x2dVBOX_HARDDISK_VBf4c4ff9f\x2d2818441c\x2dpart2.device loaded    active     pl
  dev-disk-by\x2did-dm\x2dname\x2dcentos\x2droot.device loaded    active     plugged         /dev/disk/
  dev-disk-by\x2did-dm\x2dname\x2dcentos\x2dswap.device loaded    active     plugged         /dev/disk/
  dev-disk-by\x2did-dm\x2duuid\x2dLVM\x2d0obMdzjktDKKbxmlQ0vr6qklG7BkYVl5bZnxwTaWCLd8grIbGx2LtaufsQh1jY
  dev-disk-by\x2did-dm\x2duuid\x2dLVM\x2d0obMdzjktDKKbxmlQ0vr6qklG7BkYVl5yWV63tk1dmNWa2wZT1yuXMTPetIGOb
  dev-disk-by\x2did-lvm\x2dpv\x2duuid\x2dOgMPDL\x2dwIE0\x2dOxZd\x2dbJos\x2dqkET\x2dBJkp\x2d88ULi7.devic
  dev-disk-by\x2dpath-pci\x2d0000:00:01.1\x2data\x2d2.0.device loaded    active     plugged         VBO
  dev-disk-by\x2dpath-pci\x2d0000:00:0d.0\x2data\x2d1.0.device loaded    active     plugged         VBO
  dev-disk-by\x2dpath-pci\x2d0000:00:0d.0\x2data\x2d1.0\x2dpart1.device loaded    active     plugged
  dev-disk-by\x2dpath-pci\x2d0000:00:0d.0\x2data\x2d1.0\x2dpart2.device loaded    active     plugged
  dev-disk-by\x2dpath-pci\x2d0000:00:0d.0\x2data\x2d2.0.device loaded    active     plugged         VBO
  dev-disk-by\x2dpath-pci\x2d0000:00:0d.0\x2data\x2d2.0\x2dpart1.device loaded    active     plugged
  dev-disk-by\x2duuid-37868373\x2d7fa8\x2d489f\x2d9691\x2d3fd4c4eb988d.device loaded    active     plug
  dev-disk-by\x2duuid-3ce915af\x2d5708\x2d4716\x2db03d\x2dbd62f67d77bc.device loaded    active     plug
  dev-disk-by\x2duuid-6f039e0b\x2d8d8b\x2d4402\x2dbbef\x2d247d953209a2.device loaded    active     plug
  dev-disk-by\x2duuid-aa47b3d5\x2d1afa\x2d433a\x2da12c\x2d2ad57f2374d6.device loaded    active     plug
  dev-dm\x2d0.device                loaded    active     plugged         /dev/dm-0
  dev-dm\x2d1.device                loaded    active     plugged         /dev/dm-1
  dev-drbd-by\x2ddisk-sdb1.device   loaded    active     plugged         /dev/drbd/by-disk/sdb1
  dev-drbd-by\x2dres-r0-0.device    loaded    active     plugged         /dev/drbd/by-res/r0/0
  dev-drbd0.device                  loaded    active     plugged         /dev/drbd0
  dev-mapper-centos\x2droot.device  loaded    active     plugged         /dev/mapper/centos-root
  dev-mapper-centos\x2dswap.device  loaded    active     plugged         /dev/mapper/centos-swap
  dev-sda.device                    loaded    active     plugged         VBOX_HARDDISK
  dev-sda1.device                   loaded    active     plugged         VBOX_HARDDISK 1
  dev-sda2.device                   loaded    active     plugged         LVM PV OgMPDL-wIE0-OxZd-bJos-q
  dev-sdb.device                    loaded    active     plugged         VBOX_HARDDISK
  dev-sdb1.device                   loaded    active     plugged         VBOX_HARDDISK 1
  dev-sr0.device                    loaded    active     plugged         VBOX_CD-ROM
  dev-ttyS0.device                  loaded    active     plugged         /dev/ttyS0
  dev-ttyS1.device                  loaded    active     plugged         /dev/ttyS1
  dev-ttyS2.device                  loaded    active     plugged         /dev/ttyS2
  dev-ttyS3.device                  loaded    active     plugged         /dev/ttyS3
  sys-devices-pci0000:00-0000:00:01.1-ata2-host1-target1:0:0-1:0:0:0-block-sr0.device loaded    active
  sys-devices-pci0000:00-0000:00:03.0-net-enp0s3.device loaded    active     plugged         82540EM Gi
  sys-devices-pci0000:00-0000:00:05.0-sound-card0.device loaded    active     plugged         82801AA A
  sys-devices-pci0000:00-0000:00:0d.0-ata3-host2-target2:0:0-2:0:0:0-block-sda-sda1.device loaded    ac
  sys-devices-pci0000:00-0000:00:0d.0-ata3-host2-target2:0:0-2:0:0:0-block-sda-sda2.device loaded    ac
  sys-devices-pci0000:00-0000:00:0d.0-ata3-host2-target2:0:0-2:0:0:0-block-sda.device loaded    active
  sys-devices-pci0000:00-0000:00:0d.0-ata4-host3-target3:0:0-3:0:0:0-block-sdb-sdb1.device loaded    ac
  sys-devices-pci0000:00-0000:00:0d.0-ata4-host3-target3:0:0-3:0:0:0-block-sdb.device loaded    active
  sys-devices-platform-serial8250-tty-ttyS0.device loaded    active     plugged         /sys/devices/pl
  sys-devices-platform-serial8250-tty-ttyS1.device loaded    active     plugged         /sys/devices/pl
  sys-devices-platform-serial8250-tty-ttyS2.device loaded    active     plugged         /sys/devices/pl
  sys-devices-platform-serial8250-tty-ttyS3.device loaded    active     plugged         /sys/devices/pl
  sys-devices-virtual-block-dm\x2d0.device loaded    active     plugged         /sys/devices/virtual/bl
  sys-devices-virtual-block-dm\x2d1.device loaded    active     plugged         /sys/devices/virtual/bl
  sys-devices-virtual-block-drbd0.device loaded    active     plugged         /sys/devices/virtual/bloc
  sys-module-configfs.device        loaded    active     plugged         /sys/module/configfs
  sys-subsystem-net-devices-enp0s3.device loaded    active     plugged         82540EM Gigabit Ethernet
  -.mount                           loaded    active     mounted         /
  boot.mount                        loaded    active     mounted         /boot
  dev-hugepages.mount               loaded    active     mounted         Huge Pages File System
  dev-mqueue.mount                  loaded    active     mounted         POSIX Message Queue File Syste
  mnt-drbd.mount                    loaded    active     mounted         /mnt/drbd
  proc-fs-nfsd.mount                loaded    inactive   dead            NFSD configuration filesystem
  proc-sys-fs-binfmt_misc.mount     loaded    inactive   dead            Arbitrary Executable File Form
  run-user-0.mount                  loaded    active     mounted         /run/user/0
  run-user-1000.mount               loaded    active     mounted         /run/user/1000
  sys-fs-fuse-connections.mount     loaded    inactive   dead            FUSE Control File System
  sys-kernel-config.mount           loaded    active     mounted         Configuration File System
  sys-kernel-debug.mount            loaded    active     mounted         Debug File System
  tmp.mount                         loaded    inactive   dead            Temporary Directory
  var-lib-nfs-rpc_pipefs.mount      loaded    active     mounted         RPC Pipe File System
  systemd-ask-password-console.path loaded    inactive   dead            Dispatch Password Requests to
  systemd-ask-password-plymouth.path loaded    active     waiting         Forward Password Requests to
  systemd-ask-password-wall.path    loaded    active     waiting         Forward Password Requests to W
  session-1.scope                   loaded    active     running         Session 1 of user root
  session-3.scope                   loaded    active     abandoned       Session 3 of user root
  session-c10.scope                 loaded    active     abandoned       Session c10 of user oracle
  session-c9.scope                  loaded    active     abandoned       Session c9 of user oracle
  auditd.service                    loaded    active     running         Security Auditing Service
  auth-rpcgss-module.service        loaded    inactive   dead            Kernel Module supporting RPCSE
  chronyd.service                   loaded    active     running         NTP client/server
  corosync.service                  loaded    active     running         Corosync Cluster Engine
  cpupower.service                  loaded    inactive   dead            Configure CPU power related se
  crond.service                     loaded    active     running         Command Scheduler
  dbus.service                      loaded    active     running         D-Bus System Message Bus
● display-manager.service           not-found inactive   dead            display-manager.service
  dm-event.service                  loaded    inactive   dead            Device-mapper event daemon
  dracut-shutdown.service           loaded    inactive   dead            Restore /run/initramfs
  drbd.service                      loaded    activating start     start DRBD -- please disable. Unless
  ebtables.service                  loaded    inactive   dead            Ethernet Bridge Filtering tabl
  emergency.service                 loaded    inactive   dead            Emergency Shell
● exim.service                      not-found inactive   dead            exim.service
  firewalld.service                 loaded    active     running         firewalld - dynamic firewall d
  getty@tty1.service                loaded    active     running         Getty on tty1
  gssproxy.service                  loaded    active     running         GSSAPI Proxy Daemon
● ip6tables.service                 not-found inactive   dead            ip6tables.service
● ipset.service                     not-found inactive   dead            ipset.service
● iptables.service                  not-found inactive   dead            iptables.service
  irqbalance.service                loaded    inactive   dead            irqbalance daemon
  kdump.service                     loaded    active     exited          Crash recovery kernel arming
  kmod-static-nodes.service         loaded    active     exited          Create list of required static
● lvm2-activation.service           not-found inactive   dead            lvm2-activation.service
  lvm2-lvmetad.service              loaded    active     running         LVM2 metadata daemon
  lvm2-lvmpolld.service             loaded    inactive   dead            LVM2 poll daemon
  lvm2-monitor.service              loaded    active     exited          Monitoring of LVM2 mirrors, sn
  lvm2-pvscan@8:2.service           loaded    active     exited          LVM2 PV scan on device 8:2
  microcode.service                 loaded    inactive   dead            Load CPU microcode update
  network.service                   loaded    active     exited          LSB: Bring up/down networking
  NetworkManager-wait-online.service loaded    active     exited          Network Manager Wait Online
  NetworkManager.service            loaded    active     running         Network Manager
  nfs-config.service                loaded    inactive   dead            Preprocess NFS configuration
  nfs-idmapd.service                loaded    inactive   dead            NFSv4 ID-name mapping service
  nfs-mountd.service                loaded    inactive   dead            NFS Mount Daemon
● nfs-secure-server.service         not-found inactive   dead            nfs-secure-server.service
  nfs-server.service                loaded    inactive   dead            NFS server and services
  nfs-utils.service                 loaded    inactive   dead            NFS server and client services
● ntpd.service                      not-found inactive   dead            ntpd.service
● ntpdate.service                   not-found inactive   dead            ntpdate.service
  oracle-xe.service                 loaded    active     exited          SYSV: This is a program that i
  pacemaker.service                 loaded    active     running         Pacemaker High Availability Cl
  pcsd.service                      loaded    active     running         PCS GUI and remote configurati
  plymouth-quit-wait.service        loaded    inactive   dead            Wait for Plymouth Boot Screen
  plymouth-quit.service             loaded    inactive   dead            Terminate Plymouth Boot Screen
  plymouth-read-write.service       loaded    inactive   dead            Tell Plymouth To Write Out Run
  plymouth-start.service            loaded    inactive   dead            Show Plymouth Boot Screen
  polkit.service                    loaded    active     running         Authorization Manager
  postfix.service                   loaded    active     running         Postfix Mail Transport Agent
  rc-local.service                  loaded    inactive   dead            /etc/rc.d/rc.local Compatibili
  rescue.service                    loaded    inactive   dead            Rescue Shell
  rhel-autorelabel-mark.service     loaded    inactive   dead            Mark the need to relabel after
  rhel-autorelabel.service          loaded    inactive   dead            Relabel all filesystems, if ne
  rhel-configure.service            loaded    inactive   dead            Reconfigure the system on admi
  rhel-dmesg.service                loaded    active     exited          Dump dmesg to /var/log/dmesg
  rhel-domainname.service           loaded    active     exited          Read and set NIS domainname fr
  rhel-import-state.service         loaded    active     exited          Import network configuration f
  rhel-loadmodules.service          loaded    inactive   dead            Load legacy module configurati
  rhel-readonly.service             loaded    active     exited          Configure read-only root suppo
  rpc-gssd.service                  loaded    inactive   dead            RPC security service for NFS c
  rpc-statd-notify.service          loaded    inactive   dead            Notify NFS peers of a restart
  rpc-statd.service                 loaded    inactive   dead            NFS status monitor for NFSv2/3
  rpcbind.service                   loaded    active     running         RPC bind service
  rsyslog.service                   loaded    active     running         System Logging Service
  selinux-policy-migrate-local-changes@targeted.service loaded    inactive   dead            Migrate lo
● sendmail.service                  not-found inactive   dead            sendmail.service
● sntp.service                      not-found inactive   dead            sntp.service
  sshd-keygen.service               loaded    inactive   dead            OpenSSH Server Key Generation
  sshd.service                      loaded    active     running         OpenSSH server daemon
● syslog.service                    not-found inactive   dead            syslog.service
  systemd-ask-password-console.service loaded    inactive   dead            Dispatch Password Requests
  systemd-ask-password-plymouth.service loaded    inactive   dead            Forward Password Requests
  systemd-ask-password-wall.service loaded    inactive   dead            Forward Password Requests to W
  systemd-binfmt.service            loaded    inactive   dead            Set Up Additional Binary Forma
  systemd-firstboot.service         loaded    inactive   dead            First Boot Wizard
  systemd-fsck-root.service         loaded    inactive   dead            File System Check on Root Devi
  systemd-hwdb-update.service       loaded    inactive   dead            Rebuild Hardware Database
  systemd-initctl.service           loaded    inactive   dead            /dev/initctl Compatibility Dae
  systemd-journal-catalog-update.service loaded    inactive   dead            Rebuild Journal Catalog
  systemd-journal-flush.service     loaded    active     exited          Flush Journal to Persistent St
  systemd-journald.service          loaded    active     running         Journal Service
  systemd-logind.service            loaded    active     running         Login Service
  systemd-machine-id-commit.service loaded    inactive   dead            Commit a transient machine-id
  systemd-modules-load.service      loaded    inactive   dead            Load Kernel Modules
  systemd-random-seed.service       loaded    active     exited          Load/Save Random Seed
  systemd-readahead-collect.service loaded    inactive   dead            Collect Read-Ahead Data
  systemd-readahead-done.service    loaded    inactive   dead            Stop Read-Ahead Data Collectio
  systemd-readahead-replay.service  loaded    inactive   dead            Replay Read-Ahead Data
  systemd-reboot.service            loaded    inactive   dead            Reboot
  systemd-remount-fs.service        loaded    active     exited          Remount Root and Kernel File S
  systemd-shutdownd.service         loaded    inactive   dead            Delayed Shutdown Service
  systemd-sysctl.service            loaded    active     exited          Apply Kernel Variables
● systemd-sysusers.service          not-found inactive   dead            systemd-sysusers.service
● systemd-timesyncd.service         not-found inactive   dead            systemd-timesyncd.service
  systemd-tmpfiles-clean.service    loaded    inactive   dead            Cleanup of Temporary Directori
  systemd-tmpfiles-setup-dev.service loaded    active     exited          Create Static Device Nodes in
  systemd-tmpfiles-setup.service    loaded    active     exited          Create Volatile Files and Dire
  systemd-udev-trigger.service      loaded    active     exited          udev Coldplug all Devices
  systemd-udevd.service             loaded    active     running         udev Kernel Device Manager
  systemd-update-done.service       loaded    inactive   dead            Update is Completed
  systemd-update-utmp-runlevel.service loaded    inactive   dead      start Update UTMP about System Ru
  systemd-update-utmp.service       loaded    active     exited          Update UTMP about System Boot/
  systemd-user-sessions.service     loaded    active     exited          Permit User Sessions
  systemd-vconsole-setup.service    loaded    active     exited          Setup Virtual Console
  tuned.service                     loaded    active     running         Dynamic System Tuning Daemon
● ypbind.service                    not-found inactive   dead            ypbind.service
● yppasswdd.service                 not-found inactive   dead            yppasswdd.service
● ypserv.service                    not-found inactive   dead            ypserv.service
● ypxfrd.service                    not-found inactive   dead            ypxfrd.service
  -.slice                           loaded    active     active          Root Slice
  system-getty.slice                loaded    active     active          system-getty.slice
  system-lvm2\x2dpvscan.slice       loaded    active     active          system-lvm2\x2dpvscan.slice
  system-selinux\x2dpolicy\x2dmigrate\x2dlocal\x2dchanges.slice loaded    active     active          sy
  system.slice                      loaded    active     active          System Slice
  user-0.slice                      loaded    active     active          User Slice of root
  user-1000.slice                   loaded    active     active          User Slice of oracle
  user.slice                        loaded    active     active          User and Session Slice
  dbus.socket                       loaded    active     running         D-Bus System Message Bus Socke
  dm-event.socket                   loaded    active     listening       Device-mapper event daemon FIF
  lvm2-lvmetad.socket               loaded    active     running         LVM2 metadata daemon socket
  lvm2-lvmpolld.socket              loaded    active     listening       LVM2 poll daemon socket
  rpcbind.socket                    loaded    active     running         RPCbind Server Activation Sock
  sshd.socket                       loaded    inactive   dead            OpenSSH Server Socket
  syslog.socket                     loaded    inactive   dead            Syslog Socket
  systemd-initctl.socket            loaded    active     listening       /dev/initctl Compatibility Nam
  systemd-journald.socket           loaded    active     running         Journal Socket
  systemd-shutdownd.socket          loaded    active     listening       Delayed Shutdown Socket
  systemd-udevd-control.socket      loaded    active     running         udev Control Socket
  systemd-udevd-kernel.socket       loaded    active     running         udev Kernel Socket
  dev-centos-swap.swap              loaded    active     active          /dev/centos/swap
  dev-disk-by\x2did-dm\x2dname\x2dcentos\x2dswap.swap loaded    active     active          /dev/disk/by
  dev-disk-by\x2did-dm\x2duuid\x2dLVM\x2d0obMdzjktDKKbxmlQ0vr6qklG7BkYVl5bZnxwTaWCLd8grIbGx2LtaufsQh1jY
  dev-disk-by\x2duuid-37868373\x2d7fa8\x2d489f\x2d9691\x2d3fd4c4eb988d.swap loaded    active     active
  dev-dm\x2d1.swap                  loaded    active     active          /dev/dm-1
  dev-mapper-centos\x2dswap.swap    loaded    active     active          /dev/mapper/centos-swap
  basic.target                      loaded    active     active          Basic System
  cryptsetup.target                 loaded    active     active          Local Encrypted Volumes
  emergency.target                  loaded    inactive   dead            Emergency Mode
  final.target                      loaded    inactive   dead            Final Step
  getty-pre.target                  loaded    inactive   dead            Login Prompts (Pre)
  getty.target                      loaded    active     active          Login Prompts
  graphical.target                  loaded    inactive   dead            Graphical Interface
  local-fs-pre.target               loaded    active     active          Local File Systems (Pre)
  local-fs.target                   loaded    active     active          Local File Systems
  multi-user.target                 loaded    inactive   dead      start Multi-User System
  network-online.target             loaded    active     active          Network is Online
  network-pre.target                loaded    active     active          Network (Pre)
  network.target                    loaded    active     active          Network
  nfs-client.target                 loaded    active     active          NFS client services
  nss-lookup.target                 loaded    inactive   dead            Host and Network Name Lookups
  nss-user-lookup.target            loaded    inactive   dead            User and Group Name Lookups
  paths.target                      loaded    active     active          Paths
  remote-fs-pre.target              loaded    active     active          Remote File Systems (Pre)
  remote-fs.target                  loaded    active     active          Remote File Systems
  rescue.target                     loaded    inactive   dead            Rescue Mode
  resource-agents-deps.target       loaded    active     active          resource-agents dependencies
  rpc_pipefs.target                 loaded    active     active          rpc_pipefs.target
  rpcbind.target                    loaded    active     active          RPC Port Mapper
  shutdown.target                   loaded    inactive   dead            Shutdown
  slices.target                     loaded    active     active          Slices
  sockets.target                    loaded    active     active          Sockets
  sound.target                      loaded    active     active          Sound Card
  swap.target                       loaded    active     active          Swap
  sysinit.target                    loaded    active     active          System Initialization
● syslog.target                     not-found inactive   dead            syslog.target
  time-sync.target                  loaded    inactive   dead            System Time Synchronized
  timers.target                     loaded    active     active          Timers
  umount.target                     loaded    inactive   dead            Unmount All Filesystems
  systemd-readahead-done.timer      loaded    inactive   dead      start Stop Read-Ahead Data Collectio
  systemd-tmpfiles-clean.timer      loaded    active     waiting         Daily Cleanup of Temporary Dir

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
JOB    = Pending job for the unit.

251 loaded units listed.
To show all installed unit files use 'systemctl list-unit-files'.



参考にしたURL
access.redhat.com

Opensourcetech by Takahiro Kujirai