Linux for Developers
/Beginner
Startup Services (Enable / Disable)
Definition
Configuring services to automatically start when the Linux operating system boots up.
Explain Like I'm New
Telling a program 'Turn yourself on automatically every time the server restarts, so I don't have to log in and do it manually.'
Real World Example
A company server reboots after a power outage. The website comes back online, but the database doesn't. The admin forgot to type `sudo systemctl enable postgresql` when they installed it. Because it wasn't 'enabled', it didn't start on boot.
Common Use Cases
- •Ensuring high availability
- •Disabling bloatware to speed up boot times
Interview Questions
basic
- If you run `systemctl enable nginx`, does it instantly turn Nginx on right then and there?
intermediate
- How do you check a list of every single service configured to run at startup?