If it’s good to view an inventory of all of the providers which are both working or stopped (or each) on an Ubuntu server, then you should utilize the next command:
service --status-all
This can print out an inventory of providers that will look one thing like this:
# service --status-all
[ - ] acpid
[ + ] apache-htcacheclean
[ + ] apache2
[ + ] apparmor
[ + ] apport
[ + ] atd
[ - ] console-setup.sh
[ + ] cron
[ - ] cryptdisks
[ - ] cryptdisks-early
[ + ] datadog-agent
[ + ] datadog-agent-process
[ + ] datadog-agent-trace
[ + ] dbus
[ - ] docker
Solely present Operating Providers in Ubuntu
In case you are solely within the working
providers, then we will filter by the [ + ]
gadgets:
service --status-all | grep '[ + ]'
This can present the next:
# service --status-all | grep '[ + ]'
[ + ] apache-htcacheclean
[ + ] apache2
[ + ] apparmor
[ + ] apport
[ + ] atd
[ + ] cron
[ + ] datadog-agent
[ + ] datadog-agent-process
[ + ] datadog-agent-trace
[ + ] dbus
[ + ] ebtables
This prints out a diminished record of solely the working providers.
Solely present Stopped Providers in Ubuntu
The other can be true, we will additionally present an inventory of all stopped
providers:
service --status-all | grep '[ - ]'
This can present the next:
# service --status-all | grep '[ - ]'
[ - ] acpid
[ - ] console-setup.sh
[ - ] cryptdisks
[ - ] cryptdisks-early
[ - ] docker