Ubuntu 26.04

Initial Settings : Service Settings2026/04/24

 

To see services status or enable/disable services, Configure like follows.

[1] Display services.
# display services which are running
# to add [--all], display all included inactive servises
# to add [--no-pager], do not use pagers like [less/more]

root@localhost:~#
systemctl -t service

  UNIT                               LOAD   ACTIVE SUB     DESCRIPTION  >
  apparmor.service                   loaded active exited  Load AppArmor>
  apport.service                     loaded active exited  automatic cra>
  blk-availability.service           loaded active exited  Availability >
  chrony.service                     loaded active running chrony, an NT>
  console-setup.service              loaded active exited  Set console f>
  cron.service                       loaded active running Regular backg>
  dbus.service                       loaded active running D-Bus System >
  dracut-shutdown.service            loaded active exited  Restore /run/>

.....
.....

Legend: 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.

54 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

# display list of all services' setting

root@localhost:~#
systemctl list-unit-files -t service

UNIT FILE                                    STATE           PRESET
apparmor.service                             enabled         enabled
apport-autoreport.service                    static          -
apport-coredump-hook@.service                static          -
apport-forward@.service                      static          -
apport.service                               enabled         enabled
apt-daily-upgrade.service                    static          -
apt-daily.service                            static          -
apt-news.service                             static          -
autovt@.service                              alias           -

.....
.....

xfs_scrub_fail@.service                      static          -
xfs_scrub_media@.service                     static          -
xfs_scrub_media_fail@.service                static          -

280 unit files listed.
[2] If there are some unnecessary services, it's possible to Stop and turn OFF auto-start setting like follows. (possible to omit [.service] words)
root@localhost:~#
systemctl stop apparmor

root@localhost:~#
systemctl disable apparmor

Matched Content