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

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.
Windows Server 2019: Basic Settings
Introduction Windows Server 2019, developed by Microsoft, helps businesses manage network infrastructure, data storage, applications, and server roles. Below are some basic settings to configure for optimal performance and security.
Windows Server 2019: How to Install Docker
Introduction Docker is an open-source platform that enables developers to automate the deployment, scaling, and management of applications through containerization. Containers encapsulate an application and its dependencies, ensuring consistent behavior across different environments.
How To Get Started With No-Code and Low-Code
Imagine your boss asks you to develop custom software for your company. But you and your team don’t have the time or experience in coding. And there’s no developer available at the moment as well. Panicking? Well, don’t. With low code/no code programming, you don’t have to be a developer to do any programming-related task. In recent years, many platforms have made it possible for programmers with little to no development experience to deliver software while meeting the needs of professional developers under time pressure. Without worrying about the specifics of underlying operating systems or scalability needs,
What does a data analyst do?
Did you know that 2.5 quintillion bytes of data are created every day? That’s equivalent to 250,000 Libraries of Congress, or 5 million laptops! In this ocean of data, how do we make sense of it all? That’s where data analysts come in. Data analysts are the detectives of the digital world, using their skills and tools to uncover patterns, trends, and insights from data. They help businesses and organizations make informed decisions, solve problems, and seize opportunities. Whether it’s predicting customer behavior, optimizing marketing campaigns, improving healthcare outcomes, or enhancing educational experiences, data analysts play a crucial role in shaping our world.
What is DOS?
Have you ever wondered how your computer knows what to do? The answer lies in the operating system, or OS. One of the oldest and most influential operating systems is DOS, or Disk Operating System. DOS is like a command center that tells the computer what to do and how to do it. Unlike modern operating systems, DOS uses text-based commands instead of graphical user interfaces. While it may seem simple and primitive, DOS is also fast, powerful, and flexible. However, it also has its drawbacks, such as its complexity and obsolescence. In this article, we will explore the fascinating world of DOS.