Ubuntu 24.04
Sponsored Link

Initial Settings : Service Settings2024/04/26

 
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                       
  apparmor.service           
  apport.service             
  blk-availability.service   
  console-setup.service      
  cron.service               

.....
.....

  upower.service                 
  user-runtime-dir@1000.service  
  user@1000.service              

Legend: LOAD   → Reflects whether the unit definition was properly loaded.
        ACTIVE → The high-level unit activation state, i.e. generalization of S>
        SUB    → The low-level unit activation state, values depend on unit typ>

49 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           -
blk-availability.service                     enabled         enabled

.....
.....

xfs_scrub@.service                           static          -
xfs_scrub_all.service                        static          -
xfs_scrub_fail@.service                      static          -

239 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