Public bug reported:

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

Also reported upstream.

** Affects: samhain (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: samhain (Debian)
     Importance: Unknown
         Status: Unknown

** Bug watch added: Debian Bug tracker #751747
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751747

** Also affects: samhain (Debian) via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=751747
   Importance: Unknown
       Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1330424

Title:
  /etc/init.d/samhain: invalid arguments

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samhain/+bug/1330424/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to