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.000000000 +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 [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]