[redhat-lspp] DBUS, udev, and hotplug investigation

Debora Velarde dvelarde at us.ibm.com
Thu Mar 30 02:43:17 UTC 2006


Steve Grubb <sgrubb at redhat.com> wrote on 03/27/2006 11:47:18 AM:

> On Monday 27 March 2006 14:37, Debora Velarde wrote:
> > Changes to /etc/rc.local
> > ------------------------
> > Append with the following lines to /etc/rc.local:
> > # Now stop DBUS, udev, and hal (hotplug)
> > /sbin/stop_hal
> > /sbin/stop_udev
> > /sbin/stop_dbus
> 
> Out of curiosity, why can you just do:
> 
> service hal stop
> service udev stop
> service dbus stop

You can stop hal with the command:
   service haldaemon stop

But that doesn't work for udev.  On my system, I get "unrecognized 
service".  Although I do see it running:
# ps -ef | grep udev
root       399     1  0 17:25 ?        00:00:00 /sbin/udevd -d
root      2207  1987  0 17:42 pts/0    00:00:00 grep udev

I modeled my stop_* scripts after /sbin/start_udev.

I just figured out that I can stop dbus with "service messagebus stop".

If it's preferred, rather than stopping hal and dbus like I am udev, I 
could add the following to /etc/rc.local instead:
service haldaemon stop
/sbin/stop_udev
service messagebus stop

I just tried that on my system, it works too.

> Also, how do you know that udev/hal is finished doing all its work when 
the 
> stop scripts are called?

I am calling my stop scripts from /etc/rc.local which is S99 for 
runlevels: 2,3,4,5.
DBUS is S22messagebus
hal is S98haldaemon
Both will be run before S99local -> ../rc.local

udev is started by /etc/rc.d/rc.sysinit
My stop scripts are called in rc.local which is run after rc.sysinit


After what you mentioned on the teleconference, I did some checking on the 
terminals.
1.  Whether I had my stop scripts commented out or not, 
    /dev/tty* were updated upon reboot with the new date and time.
2.  I verified that I was indeed still able to use CTRL+ALT+F# to get 
different terminal windows.

Is that sufficient?  Or is there something else I should look into 
regarding terminals?

-debbie




More information about the redhat-lspp mailing list