From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Mar 1 20:30:04 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DF69B1065671 for ; Sat, 1 Mar 2008 20:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id CAE058FC1C for ; Sat, 1 Mar 2008 20:30:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m21KU4PJ008657 for ; Sat, 1 Mar 2008 20:30:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m21KU4K3008650; Sat, 1 Mar 2008 20:30:04 GMT (envelope-from gnats) Date: Sat, 1 Mar 2008 20:30:04 GMT Message-Id: <200803012030.m21KU4K3008650@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: Craig Green Cc: Subject: Re: ports/118923: Wrong pidfile in /usr/local/etc/rc.d/dcc-start port mail/dcc-dccd X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Craig Green List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Mar 2008 20:30:05 -0000 The following reply was made to PR ports/118923; it has been noted by GNATS. From: Craig Green To: bug-followup@FreeBSD.org, john@fox-maule.dk Cc: Subject: Re: ports/118923: Wrong pidfile in /usr/local/etc/rc.d/dcc-start port mail/dcc-dccd Date: Sat, 01 Mar 2008 14:48:00 -0500 > /usr/local/etc/rc.d/dcc-start (installed via ports) states that pidfile is > > pidfile=${dccifd_pidfile:-"/var/run/dcc/dccifd.pid"} > > But it should be > pidfile=${dccifd_pidfile:-"/var/run/dccifd.pid"} Per the latest port (1.3.50_1), the run dir is /var/run/dcc. The dccifd pidfile is created in the run dir. Stopping dccifd with the rc.d script correctly finds the pidfile and stops the process. I suspect that you have an old copy of dcc_conf and need to update the rundir specified therein to point to /var/run/dcc, so dccifd and the others put their pidfiles in the right location (and incidentally don't chown /var/run to dcc, which is why the rundir was changed to /var/run/dcc in the first place). Look for DCC_RUNDIR near the top of dcc_conf. Regards, Craig. ------ cgreen:Hpoint:/usr/ports/mail/dcc-dccd# grep rundir Makefile CONFIGURE_ARGS= --homedir=${PREFIX}/dcc --bindir=${PREFIX}/bin --mandir=${MANPREFIX}/man --with-rundir=/var/run/dcc cgreen:Hpoint:/usr/ports/mail/dcc-dccd# make install [munch] cgreen:Hpoint:/usr/ports/mail/dcc-dccd# echo 'dccifd_enable="YES"' >> /etc/rc.conf cgreen:Hpoint:/usr/ports/mail/dcc-dccd# cd /usr/local/dcc cgreen:Hpoint:/usr/local/dcc# ls -la total 40 drwxr-xr-x 2 root wheel 512 Mar 1 14:27 cgi-bin -rw-r--r-- 1 root wheel 4438 Mar 1 14:27 dcc_conf.dist -rw-r--r-- 1 root wheel 796 Mar 1 14:27 flod.dist -rw-r--r-- 1 root wheel 561 Mar 1 14:27 grey_flod.dist -rw-r--r-- 1 root wheel 496 Mar 1 14:27 grey_whitelist.dist -rw------- 1 dcc wheel 2551 Mar 1 14:27 ids.dist drwxr-xr-x 2 root wheel 1024 Mar 1 14:27 libexec drwx--x--- 2 dcc wheel 512 Mar 1 14:27 log -rw------- 1 dcc wheel 7564 Mar 1 14:27 map -rw------- 1 dcc wheel 1108 Mar 1 14:27 map.txt.dist -rw-r--r-- 1 root wheel 3842 Mar 1 14:27 whiteclnt.dist -rw-r--r-- 1 root wheel 1662 Mar 1 14:27 whitecommon.dist -rw-r--r-- 1 root wheel 674 Mar 1 14:27 whitelist.dist cgreen:Hpoint:/usr/local/dcc# cp dcc_conf.dist dcc_conf cgreen:Hpoint:/usr/local/dcc# grep -i rundir dcc_conf DCC_RUNDIR=/var/run/dcc Configure_DCC_RUNDIR=/var/run/dcc cgreen:Hpoint:/usr/local/dcc# vi dcc_conf [edit dcc_conf to change 'DCCIFD_ENABLE=off' to 'DCCIFD_ENABLE=on'] cgreen:Hpoint:/usr/ports/mail/dcc-dccd# ls -la /var/run/dcc total 4 drwxr-xr-x 2 dcc wheel 512 Mar 1 14:24 . drwxr-xr-x 9 root wheel 512 Mar 1 13:21 .. cgreen:Hpoint:/usr/local/dcc# /usr/local/etc/rc.d/dcc-start start Starting dccifd. cgreen:Hpoint:/usr/local/dcc# ls -la /var/run/dcc total 6 drwxr-xr-x 2 dcc wheel 512 Mar 1 14:29 . drwxr-xr-x 9 root wheel 512 Mar 1 13:21 .. -rw-r--r-- 1 dcc wheel 6 Mar 1 14:29 dccifd.pid cgreen:Hpoint:/usr/local/dcc# ps ax | grep dcc 87775 ?? Is 0:00.00 /usr/local/dcc/libexec/dccifd -Idcc -tCMN,5, -llog -wwhiteclnt -Uuserdirs -SHELO -Smail_host -SSender -SList-ID 87776 ?? I 0:00.01 /usr/local/dcc/libexec/dccifd -Idcc -tCMN,5, -llog -wwhiteclnt -Uuserdirs -SHELO -Smail_host -SSender -SList-ID cgreen:Hpoint:/usr/local/dcc# /usr/local/etc/rc.d/dcc-start stop Stopping dccifd. Waiting for PIDS: 87776. cgreen:Hpoint:/usr/local/dcc# ps ax | grep dcc cgreen:Hpoint:/usr/local/dcc#