[SOLVED] Why no .want symlink created as expected?
by Felthorn3 from LinuxQuestions.org on (#5JW49)
So I'm learning a bit about systemd for the first time and have a bit of confusion regarding the WantedBy= section of a .service file. I'm in Ubuntu 20.04 and in this instance I'm looking at the rsync.service file in /lib/systemd/system. In the WantedBy= section it indicates multi-user.target. According to the verbiage below at https://www.freedesktop.org/software...temd.unit.html, I should see a symlink in the multi-user.target.wants directory:
"A symbolic link is created in the .wants/ or .requires/ directory of each of the listed units when this unit is installed by systemctl enable."
I have checked whether the service is enabled via 'systemctl list-unit-files --type=service' and the rsync service is listed as enabled in the 'STATE' column/field.
Amy I assuming incorrectly then, that a symlink should be present in the multi-user.target.wants directory? If so, why?
Edit: found what I was looking for I believe in /etc/systemd/system/multi-user.target.wants/
"A symbolic link is created in the .wants/ or .requires/ directory of each of the listed units when this unit is installed by systemctl enable."
I have checked whether the service is enabled via 'systemctl list-unit-files --type=service' and the rsync service is listed as enabled in the 'STATE' column/field.
Amy I assuming incorrectly then, that a symlink should be present in the multi-user.target.wants directory? If so, why?
Edit: found what I was looking for I believe in /etc/systemd/system/multi-user.target.wants/