Fedora 40
Sponsored Link

Initial Settings : Configure Services2024/04/24

 
To enable or disable services, Configure like follows.
[1] Display services list.
# the list of services that are active now
# to add [--all], display all included inactive services
# to add [--no-pager], do not use pagers like [less/more]

[root@dlp ~]#
systemctl -t service

  UNIT                                     LOAD   ACTIVE SUB     DESCRIPTION   >
  abrt-journal-core.service                loaded active running ABRT coredumpc>
  abrt-oops.service                        loaded active running ABRT kernel lo>
  abrt-xorg.service                        loaded active running ABRT Xorg log >
  abrtd.service                            loaded active running ABRT Daemon
  atd.service                              loaded active running Deferred execu>
  auditd.service                           loaded active running Security Audit>
  chronyd.service                          loaded active running NTP client/ser>
  crond.service                            loaded active running Command Schedu>
  dbus-broker.service                      loaded active running D-Bus System M>

.....
.....

  systemd-zram-setup@zram0.service         loaded active exited  Create swap on>
  user-runtime-dir@0.service               loaded active exited  User Runtime D>
  user@0.service                           loaded active running User Manager f>

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>

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

# list of all services

[root@dlp ~]#
systemctl list-unit-files -t service

UNIT FILE                                    STATE           PRESET
abrt-journal-core.service                    enabled         enabled
abrt-oops.service                            enabled         enabled
abrt-pstoreoops.service                      disabled        disabled
abrt-vmcore.service                          enabled         enabled
abrt-xorg.service                            enabled         enabled
abrtd.service                                enabled         enabled
arp-ethers.service                           disabled        disabled
atd.service                                  enabled         enabled
audit-rules.service                          enabled         enabled
auditd.service                               enabled         enabled

.....
.....

udisks2.service                              enabled         enabled
usb_modeswitch@.service                      static          -
user-runtime-dir@.service                    static          -
user@.service                                static          -
wpa_supplicant.service                       disabled        disabled

255 unit files listed.
[2] Stop and turn OFF auto-start setting for a service if you don't need it.
The example below means stopping and disable smartd service.
[root@dlp ~]#
systemctl disable --now smartd

Matched Content