Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42714 - distcc-2.12.1 - distccd does not shut down properly
Summary: distcc-2.12.1 - distccd does not shut down properly
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Lisa Seelye (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-24 00:27 UTC by Owen Gunden
Modified: 2004-02-24 09:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Owen Gunden 2004-02-24 00:27:10 UTC
Distcc rocks.  I'm using it to build a P75 box with my athlon XP machine :).

But I digress.  There's something wrong with the init scripts.  

    /etc/init.d/distccd stop

doesn't seem to do what it's supposed to.

Reproducible: Always
Steps to Reproduce:
1. emerge distcc
2. /etc/init.d/distccd start
3. /etc/init.d/distccd stop
4. ps auxw | grep distcc

OR

1. emerge distcc
2. /etc/init.d/distccd start
3. /etc/init.d/distccd stop
4. /etc/init.d/distccd start
Actual Results:  
In the first case, I saw a bunch of distcc processes still hanging about.

In the second case, I got an error because distccd was already running.

Expected Results:  
/etc/init.d/distccd stop should have killed the distccd daemon.  In fact,
killing the daemon manually seems to work just dandy.  If you insert a "pkill
distccd" as step 3.5 in my second experiment above, it works just fine.

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.3, glibc-2.3.3_pre20040207-r0,
2.6.3-gentoo-r2)
=================================================================
System uname: 2.6.3-gentoo-r2 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.4.3.13
distcc 2.12.1 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O2 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://www.gtlib.cc.gatech.edu/pub/gentoo
http://mirrors.tds.net/gentoo http://csociety-ftp.ecn.purdue.edu/pub/gentoo/
http://gentoo.seren.com/gentoo http://ftp.heanet.ie/pub/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X aalib alsa apache2 avi berkdb bonobo cdr crypt cups dga directfb
dvd encode esd fbcon foomaticdb gdbm gif glut gnome gtk gtk2 gtkhtml guile imap
imlib java jpeg libg++ libwww mad maildir mikmod mmx motif mozcalendar mozilla
moznocompose moznoirc mozsvg mozxmlterm mpeg ncurses nptl oggvorbis opengl pam
pdflib perl plotutils png ppds python quicktime readline ruby samba scanner sdl
slang spell ssl svga tcltk tcpd tetex tiff truetype usb x86 xml2 xmms xv zlib"
Comment 1 Lisa Seelye (RETIRED) gentoo-dev 2004-02-24 08:19:47 UTC
try:

   chown distcc:daemon /var/run/distccd
   killall distccd
   /etc/init.d/distccd zap
   /etc/init.d/distccd start

I suspect there's an issue with the path being touched by root after installation.
Comment 2 Owen Gunden 2004-02-24 09:18:45 UTC
That's the problem.  Maybe the ebuild needs a pkg_postinst() or something.

Thanks!
Comment 3 Lisa Seelye (RETIRED) gentoo-dev 2004-02-24 09:32:58 UTC
perhaps. i'll try and reproduce it here and test it.