Package: lsb-base
Version: 3.1-12
Severity: serious

[EMAIL PROTECTED]:/home/joey>/etc/init.d/clamav-freshclam start
Starting ClamAV virus database updater:
freshclam/sbin/start-stop-daemon: stat /var/run/clamav/freshclam.pid: No
such file or directory (No such file or directory)
 failed!

sh -x reveals it going badly wrong is parsing the start_daemon params:

+ start_daemon /usr/bin/freshclam -p /var/run/clamav/freshclam.pid -d --quiet
+ local force nice pidfile exec i
+ force=0
+ nice=0
+ pidfile=/dev/null
+ getopts fn:p: opt
+ shift 2
+ '[' /var/run/clamav/freshclam.pid = -- ']'
+ exec=/var/run/clamav/freshclam.pid
+ shift
+ '[' 0 = 1 ']'
+ '[' /dev/null ']'
+ /sbin/start-stop-daemon --start --nicelevel 0 --quiet --exec
/var/run/clamav/freshclam.pid --oknodo --pidfile /dev/null -- -d --quiet

If this is a bug in clamav-freshclam for passing the daemon to start before
the options, please reassign the bug; I haven't checked the LSB and this
package doesn't seem to bother to document start_daemon's syntax internally.

-- 
see shy jo

Reply via email to