Systemd integration bug

This forum is only for reproducible bugs with csf and lfd (i.e. not iptables problems, lack of understanding how to use a feature, etc). Posts must be accompanied with full technical details of the problem and how it can be recreated. Any posts not adhering to this, or not considered bugs, will be moved to the General Discussion (csf) forum.
Post Reply
Archi
Junior Member
Posts: 2
Joined: 28 Jan 2015, 04:18

Systemd integration bug

Post 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!
ForumAdmin
Moderator
Posts: 1523
Joined: 01 Oct 2008, 09:24

Re: Systemd integration bug

Post by ForumAdmin »

Thank you for reporting this. We'll have a fix in the next release.
ForumAdmin
Moderator
Posts: 1523
Joined: 01 Oct 2008, 09:24

Re: Systemd integration bug

Post by ForumAdmin »

The fix for this has been released in v7.60:
http://blog.configserver.com/
Archi
Junior Member
Posts: 2
Joined: 28 Jan 2015, 04:18

Re: Systemd integration bug

Post by Archi »

Looks good, thank you!
Post Reply