If it’s essential to view a listing of all of the providers which might be both operating or stopped (or each) on an Ubuntu server, then you should use the next command:
service --status-all
This may print out a listing of providers which 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
If you’re solely within the operating
providers, then we will filter by the [ + ]
gadgets:
service --status-all | grep '[ + ]'
This may 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 lowered record of solely the operating providers.
Solely present Stopped Providers in Ubuntu
The other can also be true, we will additionally present a listing of all stopped
providers:
service --status-all | grep '[ - ]'
This may present the next:
# service --status-all | grep '[ - ]'
[ - ] acpid
[ - ] console-setup.sh
[ - ] cryptdisks
[ - ] cryptdisks-early
[ - ] docker