0 like 0 dislike
asked in Software by (4.8k points)
edited by

How I cat to disable autostart (autoload) certain service in Linux Ubuntu OS? How do I prevent Linux Ubuntu services from auto-starting?

how to disable auto start service in linux

Your answer

pre, code


Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

1 Answer

0 like 0 dislike
answered by (4.8k points)

For Linux Ubuntu versions that use "systemd" (15.04 and later) use:

systemctl disable service

It will disable service autostart and won't restart after a reboot. To temporarily enable simply start the service. Not enable.

To find the service name use:

systemctl list-units --type=service


service --status-all

See services that have already been added to "systemctl" autoload:

systemctl list-unit-files --type=service --state=enabled

Other systemctl commands are:

  • systemctl start service - start a service.
  • systemctl stop service - stop a service.
  • systemctl restart service - restart a service
  • systemctl status service - status of a service.

Auto-start service settings:

  • systemctl enable service - Turns auto-start service on.
  • systemctl disable service - Turns auto-start service off.

Related questions

0 like 0 dislike
1 answer 14 views
0 like 0 dislike
1 answer 4 views
0 like 0 dislike
1 answer 16 views
0 like 0 dislike
1 answer 13 views
0 like 0 dislike
1 answer 21 views
0 like 0 dislike
1 answer 15 views