If it’s essential view an inventory of all of the providers which are both working or stopped (or each) on an Ubuntu server, then you should use the next command:
service --status-all
It will 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 are able to filter by the [ + ]
objects:
service --status-all | grep '[ + ]'
It will 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 checklist of solely the working providers.
Solely present Stopped Providers in Ubuntu
The alternative can also be true, we are able to additionally present an inventory of all stopped
providers:
service --status-all | grep '[ - ]'
It will present the next:
# service --status-all | grep '[ - ]'
[ - ] acpid
[ - ] console-setup.sh
[ - ] cryptdisks
[ - ] cryptdisks-early
[ - ] docker