Menu

How to disable service in Ubuntu 18.04?

How to disable service in Ubuntu 18.04?

How to enable service to run on boot in Ubuntu 18.04?

ubuntu services boot reboot service

Best way to manage services is to use systemctl command which have fairly intuitive interface. This command might be available on different distributions or versions of Ubuntu too. To enable service to start on system boot, well You guess it! Use enable sub-command with service name:

Enabling service

sudo systemctl enable <serviceName>

In case of issues with above command you can try also longer form:

sudo systemctl enable <serviceName>.service

For example to enable elasticsearch service, use:

sudo systemctl enable elasticsearch

Or in extended form:

sudo systemctl enable elasticsearch.service

Thats it! So easy :) See also how to list services to get name of service.

anna-31720-unsplash.jpg


See Also