ServiceUbuntu 22.04
Introduction
List of all services
service --status-all
[ + ] acpid [ - ] alsa-utils [ - ] anacron [ - ] apache-htcacheclean [ + ] apache2 [ + ] apparmor [ + ] apport [ + ] avahi-daemon [ + ] binfmt-support [ + ] bluetooth [ - ] console-setup.sh [ + ] cron [ - ] cryptdisks [ - ] cryptdisks-early [ + ] cups [ + ] cups-browsed [ + ] dbus [ + ] docker [ + ] gdm3 …
In older versions of Ubuntu I also came across a question mark
[ ? ] acpi-support [ ? ] acpid [ ? ] alsa-restore [ ? ] alsa-store [ ? ] anacron [ + ] apparmor [ ? ] apport [ ? ] atd [ ? ] avahi-daemon [ ? ] binfmt-support [ ? ] bluetooth [ - ] bootlogd …
Check the status
Using the slapd service as an example. Replace slapd with the service you are interested in.
service slapd status
* slapd is running
Enable the service
Using the slapd service as an example. Replace slapd with the service you need.
service slapd start
* slapd is running
Article author: Andrei Olegovich