Fedora 42
Sponsored Link

प्रारंभिक सेटिंग्स : सेवाएँ कॉन्फ़िगर करें2025/04/16

 

सेवाओं को सक्षम या अक्षम करने के लिए, निम्नानुसार कॉन्फ़िगर करें।

[1] सेवाओं की सूची प्रदर्शित करें।
# उन सेवाओं की सूची जो अभी सक्रिय हैं
# [--all] जोड़ने के लिए, सभी शामिल निष्क्रिय सेवाओं को प्रदर्शित करें
# [--no-pager] जोड़ने के लिए, [less/more] जैसे पेजर का उपयोग न करें

[root@dlp ~]#
systemctl -t service

  UNIT                                                           LOAD   ACTIVE SUB     DESCRIPTION
  abrt-journal-core.service                                      loaded active running ABRT coredumpctl message creator
  abrt-oops.service                                              loaded active running ABRT kernel log watcher
  abrt-xorg.service                                              loaded active running ABRT Xorg log watcher
  abrtd.service                                                  loaded active running ABRT Daemon
  atd.service                                                    loaded active running Deferred execution scheduler
  auditd.service                                                 loaded active running Security Audit Logging Service
  chronyd.service                                                loaded active running NTP client/server
  crond.service                                                  loaded active running Command Scheduler

.....
.....

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.

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

# सभी सेवाओं की सूची

[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

.....
.....

user-runtime-dir@.service                                      static          -
user@.service                                                  static          -
wpa_supplicant.service                                         disabled        disabled

272 unit files listed.
[2] यदि आपको किसी सेवा की आवश्यकता नहीं है तो उसके लिए ऑटो-स्टार्ट सेटिंग रोकें और बंद करें।
नीचे दिए गए उदाहरण का अर्थ है स्मार्टडी सेवा को रोकना और अक्षम करना।
[root@dlp ~]#
systemctl disable --now smartd

मिलान सामग्री