Please do not reply directly to this email. All additional comments should be made in the comments box of this bug. https://bugzilla.redhat.com/show_bug.cgi?id=557011 --- Comment #7 from Mamoru Tasaka <mtasaka@xxxxxxxxxxxxxxxxxxx> 2010-07-07 14:45:35 EDT --- For 0.1: * Notes for clamd-clamsmtp service A Your spec file contains: -------------------------------------------------------- 80 /sbin/service clamd.clamsmtp stop &>/dev/null || : 81 /sbin/chkconfig --del clamd-clamsmtp -------------------------------------------------------- This is not consistent (clamd.clamsmtp vs clamd-clamsmtp). B # service clamd-clamsmtp status won't work -------------------------------------------------------- [root@localhost ~]# service clamd-clamsmtp start Starting clamd.clamsmtp: LibClamAV Warning: ************************************************** LibClamAV Warning: *** The virus database is older than 7 days! *** LibClamAV Warning: *** Please update it as soon as possible. *** LibClamAV Warning: ************************************************** [ OK ] [root@localhost ~]# service clamd-clamsmtp status clamd.clamsmtp dead but subsys locked -------------------------------------------------------- However: -------------------------------------------------------- [root@localhost ~]# ps auwwx | grep [c]lamd clamsmtp 12151 0.0 16.8 153680 126688 ? Ssl 02:51 0:00 clamd.clamsmtp -c /etc/clamd.d/clamsmtp.conf --pid /var/run/clamd.clamsmtp/clamd.pid -------------------------------------------------------- Note that this ps output says that pid file is /var/run/clamd.clamsmtp/clamd.pid (also check the wrapper file /usr/share/clamav/clamd-wrapper), however on my system there is no /var/run/clamd.clamsmtp/ directory. /usr/share/clamav/clamd-wrapper: -------------------------------------------------------- 29 CLAMD_PIDFILE=/var/run/clamd.${CLAMD_SERVICE}/clamd.pid -------------------------------------------------------- C logrotate config file won't work (as I said in bug 555059) -------------------------------------------------------- [root@localhost ~]# ps auwwx | grep [c]lamd clamsmtp 12151 1.0 17.6 154840 132868 ? Ssl 02:51 0:07 clamd.clamsmtp -c /etc/clamd.d/clamsmtp.conf --pid /var/run/clamd.clamsmtp/clamd.pid [root@localhost ~]# killall -HUP clamd.clamsmtp clamd.clamsmtp: no process found -------------------------------------------------------- The problem here is that the actual binary name exected here is not clamd.clamsmtp. -------------------------------------------------------- [root@localhost ~]# pgrep -f clamd.clamsmtp 12151 [root@localhost ~]# ls -lad /proc/$(pgrep -f clamd.clamsmtp)/exe lrwxrwxrwx. 1 root root 0 Jul 8 03:07 /proc/12151/exe -> /usr/sbin/clamd -------------------------------------------------------- killall searches process by the actual binary name currently being executed (strace says killall reads /proc/XXXX/stat), so clamd.clamsmtp matches nothing. This should be like "pkill -SIGHUP -f clamd.clamsmtp", for example D. # service clamd-clamsmtp stop won't work -------------------------------------------------------- [root@localhost ~]# service clamd-clamsmtp stop Stopping clamd.clamsmtp: [FAILED] [root@localhost ~]# ps auwwx | grep [c]lamd clamsmtp 12151 0.5 17.6 154840 132872 ? Ssl 02:51 0:07 clamd.clamsmtp -c /etc/clamd.d/clamsmtp.conf --pid /var/run/clamd.clamsmtp/clamd.pid -------------------------------------------------------- ! Note The issues B. and D. seems because the directory /var/run/clamd.clamsmtp/ does not exist. Or other solution would be to specify CLAMD_PIDFILE vairable in %{_sysconfdir}/sysconfig/clamd.clamsmtp --------------------------------------------------------- [root@localhost ~]# install -d -m 0750 -o clamsmtp -g root /var/run/clamd.clamsmtp [root@localhost ~]# service clamd-clamsmtp start Starting clamd.clamsmtp: LibClamAV Warning: ************************************************** LibClamAV Warning: *** The virus database is older than 7 days! *** LibClamAV Warning: *** Please update it as soon as possible. *** LibClamAV Warning: ************************************************** [ OK ] [root@localhost ~]# service clamd-clamsmtp status clamd.clamsmtp (pid 12890) is running... [root@localhost ~]# service clamd-clamsmtp stop Stopping clamd.clamsmtp: [ OK ] [root@localhost ~]# service clamd-clamsmtp status clamd.clamsmtp is stopped --------------------------------------------------------- -- Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ package-review mailing list package-review@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/package-review