Product SiteDocumentation Site

F.9.3. Running services automatically

systemctl enable sshd.service
systemctl disable sshd.service
A service that is enabled will start automatically when the system boots. A service that is disabled will not start at boot. These commands are manipulating symbolic links in /lib/systemd/system/ and /lib/systemd/user/ while retaining the relationships with other units established in the .service file. While the symlinks can be manipulated manually, systemctl also rebuilds the systemd configuration, saving the extra step of invoking systemctl daemon-reload.