Systemd integration bug
Posted: 28 Jan 2015, 04:28
Recent integration with systemd doesn't work properly on latest Debian Testing, which results in broken startup and lack of lfd after update.
In the log, we can clearly see that:
cp says that it can't create a file in "/usr/lib/systemd/system", because it's not a directory.
After looking inside, in fact, there was no system folder in /usr/lib/systemd.
This is because standard location for system services is in /etc/systemd/system, not in /usr/lib/systemd/system. After creating proper dir and re-running update manually, everything was fixed.
Quoting doc:
1. Add mkdir /usr/lib/systemd/system before trying to put files inside.
2. Switch location of the csf & lfd services to /etc/systemd/system
Thanks!
In the log, we can clearly see that:
Code: Select all
„lfd.service” -> „/usr/lib/systemd/system/”
cp: nie można utworzyć zwykłego pliku „/usr/lib/systemd/system/”: Nie jest katalogiem
„csf.service” -> „/usr/lib/systemd/system/”
cp: nie można utworzyć zwykłego pliku „/usr/lib/systemd/system/”: Nie jest katalogiem
Failed to execute operation: No such file or directory
Failed to execute operation: No such file or directory
After looking inside, in fact, there was no system folder in /usr/lib/systemd.
Code: Select all
root@archi:/usr/lib/systemd# ls
catalog network ntp-units.d user user-generators
Code: Select all
root@archi:/usr/lib/systemd/system# ls
csf.service lfd.service
root@archi:/usr/lib/systemd/system# systemctl list-unit-files | grep "csf\|lfd"
csf.service enabled
lfd.service enabled
Solutions:The available unit files can be seen in /usr/lib/systemd/system/ and /etc/systemd/system/ (the latter takes precedence).
1. Add mkdir /usr/lib/systemd/system before trying to put files inside.
2. Switch location of the csf & lfd services to /etc/systemd/system
Thanks!