LFD with Ubuntu 12.04 LTS

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
alexp999
Junior Member
Posts: 2
Joined: 17 May 2012, 10:36

LFD with Ubuntu 12.04 LTS

Post by alexp999 »

Hi,

I realise that Ubuntu 12.04 isnt on your official support list, but I thought as it is an LTS release you will hopefully be releasing official support for it in the future.

I would like to report a bug and ask for a potential fix until a new release if possible.

Basically it seems that the stop/restart command is broken for LFD with Ubuntu 12.04.

The process does not get killed, it just returns a help text about proper usage of the kill command. I have to manually terminate the process and then start it again for changes to LFD settings to take effect.

If anyone has any ideas it really appreciate it.

Thanks.
ForumAdmin
Moderator
Posts: 1524
Joined: 01 Oct 2008, 09:24

Re: LFD with Ubuntu 12.04 LTS

Post by ForumAdmin »

We'll release a fix for this in the next release. In the meantime, if you edit /etc/init.d/lfd and change the line:

Code: Select all

                kill `$PIDOF lfd`
to:

Code: Select all

                kill `cat /var/run/lfd.pid`
it should then work OK.
alexp999
Junior Member
Posts: 2
Joined: 17 May 2012, 10:36

Re: LFD with Ubuntu 12.04 LTS

Post by alexp999 »

Thanks that did the trick, however I also had to change the following line so that the status was returned correctly.

Code: Select all

		if [ -n "`$PIDOF lfd`" ]; then
to:

Code: Select all

		if [ -n "`cat /var/run/lfd.pid`" ]; then
Post Reply