Ubuntu 22.04 LTS: Manage Services

ubuntu22-04

Initial Settings

This section explain how to manage services like see services status or enable/disable services, Configure like follows.

Step [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@bizantum:~# systemctl -t service
  UNIT
  accounts-daemon.service
  apparmor.service
  apport.service
  blk-availability.service
  cloud-config.service
  cloud-final.service
  
.....
.....

  unattended-upgrades.service
  user-runtime-dir@1000.service
  user@1000.service

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'.

# display list of all services' setting
root@bizantum:~# systemctl list-unit-files -t service
UNIT FILE                              STATE           VENDOR PRESET
apparmor.service                       enabled         enabled
apport-autoreport.service              static          -
apport-forward@.service                static          -
apport.service                         generated       -
apt-daily-upgrade.service              static          -
apt-daily.service                      static          -
autovt@.service                        alias           -
blk-availability.service               enabled         enabled
bolt.service                           static          -

.....
.....

vmtoolsd.service                       alias           -
x11-common.service                     masked          enabled
xfs_scrub@.service                     static          -
xfs_scrub_all.service                  static          -
xfs_scrub_fail@.service                static          -

207 unit files listed.

Step [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@bizantum:~# systemctl stop apparmor
root@bizantum:~# systemctl disable apparmor

Comments

Popular posts from this blog

Cyber Security: ISO 27001 Overview
Introduction ISO 27001 is an international standard for information security management systems (ISMS). It provides a framework for managing sensitive company information to ensure it remains secure. Understanding ISO 27001 is crucial for organizations aiming to protect their information assets.
Comprehensive Guide to Windows Subsystem for Linux (WSL): Benefits, Setup, and Usage
Introduction Windows Subsystem for Linux (WSL) is a compatibility layer for running Linux binary executables natively on Windows 10, Windows 11, and Windows Server. It allows users to run a GNU/Linux environment directly on Windows, including most command-line tools, utilities, and applications.
Ultimate Guide to COBIT: Framework, Benefits, Implementation, and Impact
Introduction COBIT (Control Objectives for Information and Related Technologies) is a globally recognized framework for managing and governing enterprise IT. It provides comprehensive guidelines for organizations to achieve their objectives through the effective use of IT.
Understanding ISO/IEC 20000: A Comprehensive Guide to IT Service Management
Introduction ISO/IEC 20000 is an international standard for IT Service Management (ITSM). It provides a framework for managing and delivering IT services that meet business needs and customer requirements. The standard ensures consistent and high-quality IT service delivery through a set of processes and best practices.
Top SEO Tools for Digital Marketing: A Comprehensive Guide
Introduction In today's digital landscape, search engine optimization (SEO) is a critical component for any business looking to enhance its online presence and drive organic traffic. With the myriad of SEO tools available, navigating the digital marketing space can seem daunting. To streamline your efforts and achieve optimal results, it's essential to leverage the right tools that cater to your specific needs.
Debian 12 Bookworm: Install Kubeadm
Introduction In this article, we will explore the what, who, where, when, why, and how of Kubeadm functionality on the Debian 12 Bookworm platform, so let's get started.