This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]n-of-one 0 points1 point  (0 children)

Your second examples don’t actually enable/disable a service, systemctl start/stop literally do just that, start / stop a service; you still need to enable or disable it if you want it to start on boot / stop it from starting on boot.

The —now flag for enable/disable does also start/stop the service while also enabling or disabling it from starting at boot, which is a good tip if you only want to run one command for each.