-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Stephen Gran wrote:
> This one time, at band camp, Rick Friedman said:
> 
>>Upon attempting to start the clamav daemon, an error occurs which causes
>>the start to fail. Following is the error message that is displayed when
>>/etc/init.d/clamav-daemon is run with the start parameter:
>>
>>Starting ClamAV daemon: clamd
>>/sbin/start-stop-daemon:
>>stat --oknodo: no such file or directory
>>(No such file or directory)
>>failed!
> 
> 
> Well, I see exactly what _must_ be happening, but it makes no sense to
> me, and it works fine here.  Do me a favor, add
> set -x 
> 
> as the second line in the init script (right below #!/bin/sh)
> 
> and rerun the script, and send me the output.  It's likely to be rather
> long, so you may want to use script or something to capture the output.

Stephen,

I did what you requested and have attached the file that was created
consisting of the output from the init script.

Thanks,
Rick
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFC+3I3OlHq0MpoXLoRAqFQAJ43MRRqru7gOw0rdHSG0xMiDROkiQCeNi8x
eJFZrNU8JGhs8GZj3M2NGS8=
=67CK
-----END PGP SIGNATURE-----
+ PATH=/sbin:/bin:/usr/sbin:/usr/bin
+ DAEMON=/usr/sbin/clamd
+ NAME=clamd
+ DESC='ClamAV daemon'
+ CLAMAVCONF=/etc/clamav/clamd.conf
+ SUPERVISOR=/usr/bin/daemon
+ SUPERVISORNAME=daemon
+ SUPERVISORPIDFILE=/var/run/clamav/daemon-clamd.pid
+ SUPERVISORARGS='--name=clamd --respawn /usr/sbin/clamd -F 
/var/run/clamav/daemon-clamd.pid'
+ '[' -x /usr/sbin/clamd ']'
+ '[' -r /etc/default/clamav-daemon ']'
+ . /etc/default/clamav-daemon
+ . /lib/lsb/init-functions
++ TPUT=/usr/bin/tput
++ EXPR=/usr/bin/expr
++ '[' -x /usr/bin/tput ']'
++ '[' -x /usr/bin/expr ']'
++ /usr/bin/tput hpa 60
++ FANCYTTY=1
+ '[' '!' -f /etc/clamav/clamd.conf ']'
+ grep -q '^Example' /etc/clamav/clamd.conf
+ grep -q '^Foreground' /etc/clamav/clamd.conf
++ grep '^PidFile' /etc/clamav/clamd.conf
++ awk '{print $2}'
+ THEPIDFILE=
+ '[' -z '' ']'
+ '[' -e '' ']'
+ '[' '' = 1 ']'
+ case "$1" in
+ '[' -z '' ']'
+ log_begin_msg 'Starting ClamAV daemon: clamd'
+ '[' -z 'Starting ClamAV daemon: clamd' ']'
+ echo -n 'Starting ClamAV daemon: clamd'
Starting ClamAV daemon: clamd+ start_daemon -p /usr/sbin/clamd
+ local force nice pidfile exec
++ POSIXLY_CORRECT=1
++ getopt fn:p: -p /usr/sbin/clamd
+ set -- -p /usr/sbin/clamd --
+ force=0
+ nice=0
+ pidfile=/dev/null
+ for i in '$*'
+ case $i in
+ pidfile=/usr/sbin/clamd
+ shift 2
+ for i in '$*'
+ case $i in
+ for i in '$*'
+ case $i in
+ shift
+ break
+ exec=
+ shift
+ '[' 0 = 1 ']'
+ '[' /usr/sbin/clamd ']'
+ /sbin/start-stop-daemon --start --nicelevel 0 --quiet --exec --oknodo 
--pidfile /usr/sbin/clamd --
/sbin/start-stop-daemon: stat --oknodo: No such file or directory (No such file 
or directory)
+ ret=2
+ log_end_msg 2
+ '[' -z 2 ']'
+ '[' 1 -eq 1 ']'
++ /usr/bin/tput setaf 1
+ RED=''
++ /usr/bin/tput op
+ NORMAL=''
+ '[' 2 -eq 0 ']'
+ /bin/echo -e ' failed!'
 failed!
+ return 2
+ exit 0

Reply via email to