Adding a service permanently
Tags:
systemctl enable name-of-the-service
To use Samba as an example
systemctl enable smb.service systemctl enable nmb.service systemctl start smb.service systemctl start nmb.service
All that the first command does is create a symlink
ln -s ‘/usr/lib/systemd/system/smb.service’ ‘/etc/systemd/system/multi-user.target.wants/smb.service’
Thus /etc/systemd/system/multi-user.target.wants contains all services that need to start automatically.
💬 Feel free to leave your comments
Share your thoughts below!
No comments yet. Be the first!