Page 1 of 1

Systemd integration bug

Posted: 28 Jan 2015, 04:28
by Archi
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:

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
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.

Code: Select all

root@archi:/usr/lib/systemd# ls
catalog  network  ntp-units.d  user  user-generators
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.

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
Quoting doc:
The available unit files can be seen in /usr/lib/systemd/system/ and /etc/systemd/system/ (the latter takes precedence).
Solutions:
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!

Re: Systemd integration bug

Posted: 28 Jan 2015, 09:31
by ForumAdmin
Thank you for reporting this. We'll have a fix in the next release.

Re: Systemd integration bug

Posted: 28 Jan 2015, 09:40
by ForumAdmin
The fix for this has been released in v7.60:
http://blog.configserver.com/

Re: Systemd integration bug

Posted: 29 Jan 2015, 03:10
by Archi
Looks good, thank you!