Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#30213 - [networkmanager] Upper case letters in "NetworkManager.service" lead to strange systemd behavior
Attached to Project:
Arch Linux
Opened by Bernhard Dunkl (bernhard_dunkl) - Saturday, 09 June 2012, 07:41 GMT
Last edited by Tom Gundersen (tomegun) - Thursday, 19 September 2013, 16:52 GMT
Opened by Bernhard Dunkl (bernhard_dunkl) - Saturday, 09 June 2012, 07:41 GMT
Last edited by Tom Gundersen (tomegun) - Thursday, 19 September 2013, 16:52 GMT
|
DetailsIt seems that systemd is inconsistent when it comes to upper case letters in unit filenames like "NetworkManager.service":
output of "systemctl list-units --all": ... networkmanager.service loaded active running networkmanager.service ... systemctl start networkmanager.service -> works systemctl enable networkmanager.service -> fails: "Failed to issue method call: No such file or directory" systemctl enable NetworkManager.service -> works |
This task depends upon
Closed by Tom Gundersen (tomegun)
Thursday, 19 September 2013, 16:52 GMT
Reason for closing: Upstream
Thursday, 19 September 2013, 16:52 GMT
Reason for closing: Upstream
So when looking into /usr/lib/systemd/system I saw the one in lowercases and tried some times unsucessfully before searching on the net and find this bug report. So as said here I tried with the one with Uppercase and it worked.
So if the symbolic links are not working with systemd, please remove it :
ls -l networkmanager.service
lrwxrwxrwx 1 root root 22 Jun 15 21:21 networkmanager.service -> NetworkManager.service
[sylock@vboxnmi system]$ pwd
/usr/lib/systemd/system
[sylock@vboxnmi system]$ pacman -Qo networkmanager.service
networkmanager.service is owned by networkmanager 0.9.4.0-6
Because that behavior is weird: starting the service with the symbolic link in lowercase works but add it to the boot process with "systemctl enable networkmanager.service" fails.
Maybe this is because a "systemctl enable" only add a symlink to the service definition file and because networkmanager.service is itself a symlink? So it would fails because a symlink of a symlink is not authorized?
In that cas this is an exclusive behavior of systemd because I tested and from an OS point of view, a symlink of a symlink do works.