Skip to content

Instantly share code, notes, and snippets.

@zoonderkins
Created August 7, 2018 14:37
Show Gist options
  • Save zoonderkins/5d083cf9f2fccce7ca7bf24f9a3e69fd to your computer and use it in GitHub Desktop.
Save zoonderkins/5d083cf9f2fccce7ca7bf24f9a3e69fd to your computer and use it in GitHub Desktop.
Disable services on startup in ubuntu

systemctl disable <service> If you are not using systemd (Ubuntu 14.10 and earlier) use:

update-rc.d -f <service> remove The following command will give you a list of all services on your machine:

service --status-all Example disable Nginx

systemctl disable nginx
// reenable
systemctl enable nginx

For more details, see enabling-and-disabling-services and for the very long answer see this post (as already mentioned by @muru).

For more details, see this post on Digital Ocean and the man page for systemctl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment