Date: Sat, 1 Mar 2008 20:30:04 GMT From: Craig Green <cgreen@sentex.net> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/118923: Wrong pidfile in /usr/local/etc/rc.d/dcc-start port mail/dcc-dccd Message-ID: <200803012030.m21KU4K3008650@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/118923; it has been noted by GNATS. From: Craig Green <cgreen@sentex.net> 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#
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803012030.m21KU4K3008650>