Bug#751747: /etc/init.d/samhain: invalid arguments

2014-06-16 Thread Alex Muntada
Package: samhain
Version: 3.1.0-5

When /etc/logrotate.d/samhain runs /etc/init.d/samhain reload
it raises the following error:

/etc/cron.daily/logrotate:
/etc/init.d/samhain: invalid arguments
error: error running shared postrotate script for '/var/log/samhain/*.log '
run-parts: /etc/cron.daily/logrotate exited with return code 1

The problem is that /etc/init.d/samhain is missing an argument
in the call to pidofproc. Just adding $DAEMON fixes that:

--- /etc/init.d/samhain 2014-03-29 08:39:04.0 +0100
+++ samhain 2014-06-16 11:43:31.979809768 +0200
@@ -35,7 +35,7 @@
pid=`cat $PIDFILE`
 # No pid, probably no daemon present
if [ -n $pid ] ; then
-   pidofproc -p $PIDFILE
+   pidofproc -p $PIDFILE $DAEMON
return $?
fi

Cheers,
Alex


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#751747: /etc/init.d/samhain: invalid arguments

2014-06-16 Thread Javier Fernandez-Sanguino
On 16 June 2014 11:43, Alex Muntada al...@alexm.org wrote:

 Package: samhain
 Version: 3.1.0-5

 When /etc/logrotate.d/samhain runs /etc/init.d/samhain reload
 it raises the following error:

 /etc/cron.daily/logrotate:
 /etc/init.d/samhain: invalid arguments
 error: error running shared postrotate script for '/var/log/samhain/*.log '
 run-parts: /etc/cron.daily/logrotate exited with return code 1


Thanks, I will review the error and the proposed fix and incorporate it
into the next package upload.

Best regards

Javier