clone 382597 -1 reassign -1 clamav-freshclam retitle -1 clamav-freshclam: uses start_daemon incorrectly severity 382597 minor retitle 382597 lsb-base: fails to document LSB functions adequately thanks
On 8/11/06, Joey Hess <[EMAIL PROTECTED]> wrote:
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.
The LSB does require that all options be specified before the executable name; I am revising README.Debian in lsb-base to include documentation of all of the functions. Chris -- Chris Lawrence - http://blog.lordsutch.com/ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]