Bug#679544: collectd: init script does not source lsb-functions

June 29th, 2012 - 01:10 pm ET by Michael Stapelberg | Report spam
Package: collectd
Version: 5.1.0-1


Hey,

I noticed that /etc/init.d/collectd does not
source /lib/lsb/init-functions. This file is used by the systemd
package to implement the compatibility layer: When it detects that your
system is running systemd, it will run "systemctl restart
collectd.service" instead of trying to restart it using the init script.

Therefore, due to the init script not sourcing lsb-functions, this
doesn’t work and you will end up with two instances of collectd running
whenever you invoke the initscript while having a native
collectd.service file in place.

Please fix this in your next upload.

Thanks,
Best regards,
Michael



To UNSUBSCRIBE, email to debian-bugs-dist-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
email Follow the discussionReplies 2 repliesReplies Make a reply

Similar topics

Replies

#1 Sebastian Harl
June 29th, 2012 - 04:30 pm ET | Report spam

Hi there,

On Fri, Jun 29, 2012 at 07:00:18PM +0200, Michael Stapelberg wrote:
I noticed that /etc/init.d/collectd does not
source /lib/lsb/init-functions. This file is used by the systemd
package to implement the compatibility layer: When it detects that your
system is running systemd, it will run "systemctl restart
collectd.service" instead of trying to restart it using the init script.

Therefore, due to the init script not sourcing lsb-functions, this
doesn’t work and you will end up with two instances of collectd running
whenever you invoke the initscript while having a native
collectd.service file in place.

Please fix this in your next upload.



If I understand you correctly, all I need to do to fix the systemd issue
is to source that file without doing any other modifications to the
current init script. Is that right?

Cheers,
Sebastian

Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin







To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
Replies Reply to this message
#2 Michael Stapelberg
June 29th, 2012 - 07:30 pm ET | Report spam
Hi Sebastian,

Quoting Sebastian Harl (2012-06-29 22:23:54)
If I understand you correctly, all I need to do to fix the systemd issue
is to source that file without doing any other modifications to the
current init script. Is that right?


That’s correct!

Best regards,
Michael



To UNSUBSCRIBE, email to
with a subject of "unsubscribe". Trouble? Contact
email Follow the discussion Replies Reply to this message
Help Create a new topicReplies Make a reply
Search Make your own search