How to Enable Disable Startup Services in Ubuntu

Mar 15, 2019 / Updated on Mar 15, 2019

Enable / Disable startup service

# Disable a startup service
sudo systemctl disable apache2
# Or
sudo update-rc.d apache2 disable

# Enable a startup service
sudo systemctl enable apache2
# Or
sudo update-rc.d apache2 enable

Remove / Add

# Delete
sudo update-rc.d apache2 remove
#Or
sudo update-rc.d -f apache2 remove

# To add it back
sudo update-rc.d apache2 defaults
comments powered by Disqus
Categories:
Tags: