Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133264 - baselayout-1.12.0_pre19-r2 starts bluetooth in boot runlevel and stops it in default
Summary: baselayout-1.12.0_pre19-r2 starts bluetooth in boot runlevel and stops it in ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-13 22:43 UTC by Petteri Räty (RETIRED)
Modified: 2006-05-23 06:31 UTC (History)
1 user (show)

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


Attachments
Fixes the described issue (coldplug.patch,3.12 KB, patch)
2006-05-14 12:22 UTC, Roy Marples (RETIRED)
Details | Diff
Fixes the described issue (coldplug.patch,3.66 KB, patch)
2006-05-14 12:52 UTC, Roy Marples (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Petteri Räty (RETIRED) gentoo-dev 2006-05-13 22:43:32 UTC
I have a usb bluetooth stick installed that is not added to any runlevels as I usually just start the service when I use bluetooth or it is started when I attach the stick to my machine. Now with the new baselayout features the bluetooth service is first started by the coldplug/hotplug stuff in the boot runlevel and then it is stopped in the default runlevel.

My /etc/conf.d/rc settings 
# Do we allow services to be hotplugged? If not, set to RC_HOTPLUG="no"
RC_HOTPLUG="yes"
# services to start in the boot runlevel. Set RC_COLDPLUG="no" if you don't
RC_COLDPLUG="yes"
# Some people want a finer grain over hotplug/coldplug. RC_PLUG_SERVICES is a
# default we allow services through as RC_COLDPLUG/RC_HOTPLUG has to be yes
# Example - RC_PLUG_SERVICES="net.wlan !net.*"
RC_PLUG_SERVICES=""

pena baselayout # rc-update show
               acpid |      default
           alsasound | boot
            bootmisc | boot
             checkfs | boot
           checkroot | boot
               clock | boot
         consolefont | boot
               cupsd |      default
               fcron |      default
                hald |      default
            hostname | boot
             keymaps | boot
               local |      default nonetwork
          localmount | boot
               mdadm |      default
             metalog |      default
             modules | boot
            net.eth0 |      default
              net.lo | boot
            netmount |      default
          ntp-client |      default
           rmnologin | boot
                sshd |      default
             urandom | boot
                 xdm |      default
                 xfs |      default

Portage 2.1_pre10-r5 (default-linux/x86/2005.1, gcc-3.4.6, glibc-2.4-r3, 2.6.16-gentoo-r7 i686)
=================================================================
System uname: 2.6.16-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.12.0_pre19
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r1
dev-util/confcache:  0.4.2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe -mfpmath=sse -ffast-math -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -pipe -mfpmath=sse -ffast-math -fomit-frame-pointer"
DISTDIR="/usr/src/distfiles"
FEATURES="autoaddcvs autoconfig ccache collision-protect confcache cvs distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms sign strict stricter userpriv usersandbox verify-rdepend"
GENTOO_MIRRORS=" http://trumpetti.atm.tut.fi/gentoo  http://lame.lut.fi/linux/gentoo "
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="fi"
MAKEOPTS="-j2 -s"
PKGDIR="/home/pkg/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/mnt/checkouts/overlays/betelgeuse /mnt/checkouts/gentooexperimental/gentoo-java-experimental"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 aac acl acpi alsa apm arts audiofile avi bash-completion berkdb bitmap-fonts bluetooth bzip2 bzlib cairo cdb cddb cdparanoia cli crypt cups dbus divx4linux dri dts dvd dvdr dvdread emboss esd ffmpeg firefox foomaticdb freetype gif gstreamer gtk2 hal isdnlog java jpeg kde kdeenablefinal libg++ libwww logitech-mouse mad makecheck mikmod mjpeg mmx mmx2 mp3 mpeg ncurses network nptl nptlonly nsplugin nvidia offensive ogg oggvorbis opengl pam pcre pdflib png pppd qt quicktime readline real reflection rtc samba session spell spl sse sse2 ssl subversion svg symlink tcpd theora threads truetype truetype-fonts type1-fonts unicode usb userlocales vorbis win32codecs xcomposite xml xml2 xorg xv xvid zlib elibc_glibc input_devices_mouse input_devices_keyboard kernel_linux linguas_fi userland_GNU video_cards_none video_cards_nvidia"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-05-14 09:29:15 UTC
Well, so disable hotplug/coldplug. There's Bug 119989 for udev, baselayout already has features to disable it.
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2006-05-14 10:57:27 UTC
(In reply to comment #1)
> Well, so disable hotplug/coldplug. There's Bug 119989 for udev, baselayout
> already has features to disable it.
> 

That would mean that it is expected default behaviour to have services started just to be stopped soon after, which I don't quite believe. 
Comment 3 Roy Marples (RETIRED) gentoo-dev 2006-05-14 12:22:28 UTC
Created attachment 86767 [details, diff]
Fixes the described issue

Patch comitted to our SVN repo, but I'd like you to test it please.
Comment 4 Petteri Räty (RETIRED) gentoo-dev 2006-05-14 12:45:09 UTC
(In reply to comment #3)
> Created an attachment (id=86767) [edit]
> Fixes the described issue
> 
> Patch comitted to our SVN repo, but I'd like you to test it please.
> 

Now I get the following output (hand copied):
ln: creating symbolic link `/var/lib/init.d/coldplugged/bluetooth` to `/etc/init.d/bluetooth`: No such file or directory
* Device iniated services: bluetooth

The end result is that bluetooth is left running which I guess is the right behavious as I have RC_HOTPLUG and RC_COLDPLUG set to yes.
Comment 5 Roy Marples (RETIRED) gentoo-dev 2006-05-14 12:52:22 UTC
Created attachment 86770 [details, diff]
Fixes the described issue

Heh, forgot to include depscan.sh updates. New patch attached includes this :)
Comment 6 Petteri Räty (RETIRED) gentoo-dev 2006-05-14 13:13:33 UTC
(In reply to comment #5)
> Created an attachment (id=86770) [edit]
> Fixes the described issue
> 
> Heh, forgot to include depscan.sh updates. New patch attached includes this :)
> 

Now the error message is gone. I think I also used to have net.eth0 in the Device iniatiated list, which was probably also wrong as I had it in the default runlevel, but now it only shows bluetooth. Let's just hope your patch didn't break anything else this time. ;D Thanks for fixing this.
Comment 7 Roy Marples (RETIRED) gentoo-dev 2006-05-14 13:25:30 UTC
(In reply to comment #6)
> Now the error message is gone. I think I also used to have net.eth0 in the
> Device iniatiated list, which was probably also wrong as I had it in the
> default runlevel, but now it only shows bluetooth.

That's right - it only lists services that you've not asked to start by default.
Comment 8 Roy Marples (RETIRED) gentoo-dev 2006-05-23 06:31:56 UTC
Fixed in baselayout-1.12.0