Quick one: what is the difference between systemctl start api and systemctl enable api?
-
startruns it now and changes nothing on disk;enablecreates the symlink that starts it at boot and does not touch the running system.enable --nowdoes both. They are orthogonal: one is about this instant, one is about every future boot. -
enablestarts the service andstartonly marks it for the next boot. Exactly backwards, and it is a common slip under pressure. - They are aliases;
enableis the newer spelling. Running one without the other is the cause of a whole genre of incident. -
startapplies until the next daemon-reload,enableis permanent.daemon-reloadre-reads unit files; it does not stop running services.
start runs it now and enable only makes it come back after a reboot, so they are two separate things.
A small question that catches a real operational habit. On any host you have changed by hand, verifying both states before you walk away is the discipline being tested.
Starting a service by hand during an incident and assuming it will survive the next reboot. It will not, and the failure arrives months later with no obvious cause.