boot problem

Rick Stevens rstevens at vitalstream.com
Tue Mar 1 18:01:39 UTC 2005


roland brouwers wrote:
> roland brouwers wrote:
> 
>>Hi,
>>
>>I have the following problem.
>>When a Siemens primergy server boots he stops at "start local
> 
> services",
> 
>>just after he starts service rhnsd. 
>>He stays at this line forever.
>>When I boot with the "I" prompt and skip local services he continues.
>>What is or are the local services?
> 
> 
> You didn't say what kind of system this is.  Anyway, you could do the
> following:
> 
> 	cd /etc/rc.d
> 	grep -ri services *
> 
> That will search all startup scripts to find the phrase "services".
> Find the script that contains that word and look at it to find which
> services it starts.  One of those is the culprit (odds are it depends
> on the network somehow)
> 
> BTW, rhnsd is the Red Hat update daemon.  It queries the Red Hat network
> to see if there are new updates to be applied (you know...it drives that
> checkmark-arrow-exclamation-point icon in the toolbar).
> ------------------------------------------------------------------------
> ---
> BTW, it is RH9
> 
> Here is a copy of the output. As you can see, all the services
> mentionned, are services he already started before asking about local
> services, or am I understanding this wrongly.
> 
> 
> Output of : grep -ri services *
> 
> init.d/killall:# Bring down all unneeded services that are still running
> (there shouldn't 
> 
> init.d/pcmcia:	echo -n $"Starting PCMCIA services:"
> init.d/pcmcia:	echo -n $"Shutting down PCMCIA services:"
> init.d/gpm:	echo -n $"Starting console mouse services: "
> init.d/gpm:	echo -n $"Shutting down console mouse services: "
> init.d/nscd:#		slow naming services like NIS, NIS+, LDAP, or
> esiod.
> init.d/isdn:# description: start and stop ISDN services
> init.d/nfs:#               the NFS services.
> init.d/nfs:	action $"Starting NFS services: " /usr/sbin/exportfs -r
> init.d/nfs:	# reset input queue for rest of network services
> init.d/nfs:	action $"Shutting down NFS services: "
> /usr/sbin/exportfs -au
> init.d/ypbind:	echo -n $"Shutting down NIS services: "
> init.d/winbind:	echo -n $"Starting $KIND services: "
> init.d/winbind:	echo -n $"Shutting down $KIND services: "
> init.d/smb:#	       used to provide SMB network services.
> init.d/smb:	echo -n $"Starting $KIND services: "
> init.d/smb:	echo -n $"Starting $KIND services: "
> init.d/smb:	echo -n $"Shutting down $KIND services: "
> init.d/smb:	echo -n $"Shutting down $KIND services: "
> 
> init.d/xinetd:# logging capabilities, the ability to make services \
> 
> init.d/xinetd:    # Need to get rid of localization for external
> services - 
> init.d/vncserver:#	 used to provide remote X administration
> services.
> init.d/ypserv:	echo -n $"Starting YP server services: "
> init.d/ypserv:        echo -n $"Stopping YP server services: "
> rc:#               services when the runlevel changes.
> rc0.d/S00killall:# Bring down all unneeded services that are still
> running (there shouldn't 
> rc0.d/K96pcmcia:	echo -n $"Starting PCMCIA services:"
> rc0.d/K96pcmcia:	echo -n $"Shutting down PCMCIA services:"
> rc0.d/K15gpm:	echo -n $"Starting console mouse services: "
> rc0.d/K15gpm:	echo -n $"Shutting down console mouse services: "
> rc0.d/K91isdn:# description: start and stop ISDN services
> rc0.d/K20nfs:#               the NFS services.
> rc0.d/K20nfs:	action $"Starting NFS services: " /usr/sbin/exportfs -r
> rc0.d/K20nfs:	# reset input queue for rest of network services
> rc0.d/K20nfs: action $"Shutting down NFS services: " /usr/sbin/exportfs
> -au
> rc0.d/K35winbind:	echo -n $"Starting $KIND services: "
> rc0.d/K35winbind:	echo -n $"Shutting down $KIND services: "
> rc0.d/K35smb:#	       used to provide SMB network services.
> rc0.d/K35smb:	echo -n $"Starting $KIND services: "
> rc0.d/K35smb:	echo -n $"Starting $KIND services: "
> rc0.d/K35smb:	echo -n $"Shutting down $KIND services: "
> rc0.d/K35smb:	echo -n $"Shutting down $KIND services: "
> rc0.d/K50xinetd:#     logging capabilities, the ability to make services
> \
> 
> rc0.d/K50xinetd:    # Need to get rid of localization for external
> services 
> rc0.d/K35vncserver:#	used to provide remote X administration
> services.
> rc0.d/K74ypserv:	echo -n $"Starting YP server services: "
> rc0.d/K74ypserv:        echo -n $"Stopping YP server services: "
> rc1.d/K96pcmcia:	echo -n $"Starting PCMCIA services:"
> rc1.d/K96pcmcia:	echo -n $"Shutting down PCMCIA services:"
> rc1.d/K15gpm:	echo -n $"Starting console mouse services: "
> rc1.d/K15gpm:	echo -n $"Shutting down console mouse services: "
> rc1.d/K91isdn:# description: start and stop ISDN services
> rc1.d/K20nfs:#               the NFS services.
> rc1.d/K20nfs:	action $"Starting NFS services: " /usr/sbin/exportfs -r
> rc1.d/K20nfs:	# reset input queue for rest of network services
> rc1.d/K20nfs:action $"Shutting down NFS services: " /usr/sbin/exportfs
> -au
> rc1.d/K35winbind:	echo -n $"Starting $KIND services: "
> rc1.d/K35winbind:	echo -n $"Shutting down $KIND services: "
> rc1.d/K35smb:#	       used to provide SMB network services.
> rc1.d/K35smb:	echo -n $"Starting $KIND services: "
> rc1.d/K35smb:	echo -n $"Starting $KIND services: "
> rc1.d/K35smb:	echo -n $"Shutting down $KIND services: "
> rc1.d/K35smb:	echo -n $"Shutting down $KIND services: "
> rc1.d/K50xinetd:#     logging capabilities, the ability to make services
> \
> rc1.d/K50xinetd:    # Need to get rid of localization for external
> services 
> rc1.d/K35vncserver:#    used to provide remote X administration
> services.
> rc1.d/K74ypserv:	echo -n $"Starting YP server services: "
> rc1.d/K74ypserv:        echo -n $"Stopping YP server services: "
> rc2.d/S24pcmcia:	echo -n $"Starting PCMCIA services:"
> rc2.d/S24pcmcia:	echo -n $"Shutting down PCMCIA services:"
> rc2.d/S85gpm:	echo -n $"Starting console mouse services: "
> rc2.d/S85gpm:	echo -n $"Shutting down console mouse services: "
> 
> rc2.d/S09isdn:# description: start and stop ISDN services
> rc2.d/S60nfs:#               the NFS services.
> rc2.d/S60nfs:	action $"Starting NFS services: " /usr/sbin/exportfs -r
> rc2.d/S60nfs:	# reset input queue for rest of network services
> rc2.d/S60nfs: action $"Shutting down NFS services: " /usr/sbin/exportfs
> -au
> rc2.d/K35winbind:	echo -n $"Starting $KIND services: "
> rc2.d/K35winbind:	echo -n $"Shutting down $KIND services: "
> rc2.d/K35smb:#	       used to provide SMB network services.
> rc2.d/K35smb:	echo -n $"Starting $KIND services: "
> rc2.d/K35smb:	echo -n $"Starting $KIND services: "
> rc2.d/K35smb:	echo -n $"Shutting down $KIND services: "
> rc2.d/K35smb:	echo -n $"Shutting down $KIND services: "
> rc2.d/S56xinetd:#    logging capabilities, the ability to make services
> \
> rc2.d/S56xinetd:    # Need to get rid of localization for external
> services 
> rc2.d/K35vncserver:#	 used to provide remote X administration
> services.
> rc2.d/K74ypserv:	echo -n $"Starting YP server services: "
> rc2.d/K74ypserv:        echo -n $"Stopping YP server services: "
> rc3.d/S24pcmcia:	echo -n $"Starting PCMCIA services:"
> rc3.d/S24pcmcia:	echo -n $"Shutting down PCMCIA services:"
> rc3.d/S85gpm:	echo -n $"Starting console mouse services: "
> rc3.d/S85gpm:	echo -n $"Shutting down console mouse services: "
> rc3.d/S09isdn:# description: start and stop ISDN services
> rc3.d/S60nfs:#               the NFS services.
> rc3.d/S60nfs:	action $"Starting NFS services: " /usr/sbin/exportfs -r
> rc3.d/S60nfs:	# reset input queue for rest of network services
> rc3.d/S60nfs: action $"Shutting down NFS services: " /usr/sbin/exportfs
> -au
> rc3.d/K35winbind:	echo -n $"Starting $KIND services: "
> rc3.d/K35winbind:	echo -n $"Shutting down $KIND services: "
> rc3.d/K35smb:#	       used to provide SMB network services.
> rc3.d/K35smb:	echo -n $"Starting $KIND services: "
> rc3.d/K35smb:	echo -n $"Starting $KIND services: "
> rc3.d/K35smb:	echo -n $"Shutting down $KIND services: "
> rc3.d/K35smb:	echo -n $"Shutting down $KIND services: "
> rc3.d/S56xinetd:#  logging capabilities, the ability to make services \
> rc3.d/S56xinetd:    # Need to get rid of localization for external
> services 
> rc3.d/K35vncserver:#	       used to provide remote X administration
> services.
> rc3.d/K74ypserv:	echo -n $"Starting YP server services: "
> rc3.d/K74ypserv:        echo -n $"Stopping YP server services: "
> rc4.d/S24pcmcia:	echo -n $"Starting PCMCIA services:"
> rc4.d/S24pcmcia:	echo -n $"Shutting down PCMCIA services:"
> rc4.d/S85gpm:	echo -n $"Starting console mouse services: "
> rc4.d/S85gpm:	echo -n $"Shutting down console mouse services: "
> rc4.d/S09isdn:# description: start and stop ISDN services
> rc4.d/S60nfs:#               the NFS services.
> rc4.d/S60nfs:	action $"Starting NFS services: " /usr/sbin/exportfs -r
> rc4.d/S60nfs:	# reset input queue for rest of network services
> rc4.d/S60nfs: action $"Shutting down NFS services: " /usr/sbin/exportfs
> -au
> rc4.d/K35winbind:	echo -n $"Starting $KIND services: "
> rc4.d/K35winbind:	echo -n $"Shutting down $KIND services: "
> rc4.d/K35smb:#	       used to provide SMB network services.
> rc4.d/K35smb:	echo -n $"Starting $KIND services: "
> rc4.d/K35smb:	echo -n $"Starting $KIND services: "
> rc4.d/K35smb:	echo -n $"Shutting down $KIND services: "
> rc4.d/K35smb:	echo -n $"Shutting down $KIND services: "
> rc4.d/S56xinetd:#              logging capabilities, the ability to make
> services \
> rc4.d/S56xinetd:    # Need to get rid of localization for external
> services 
> rc4.d/K35vncserver:#	       used to provide remote X administration
> services.
> rc4.d/K74ypserv:	echo -n $"Starting YP server services: "
> rc4.d/K74ypserv:        echo -n $"Stopping YP server services: "
> rc5.d/S24pcmcia:	echo -n $"Starting PCMCIA services:"
> rc5.d/S24pcmcia:	echo -n $"Shutting down PCMCIA services:"
> rc5.d/S85gpm:	echo -n $"Starting console mouse services: "
> rc5.d/S85gpm:	echo -n $"Shutting down console mouse services: "
> rc5.d/S09isdn:# description: start and stop ISDN services
> rc5.d/S60nfs:#               the NFS services.
> rc5.d/S60nfs:	action $"Starting NFS services: " /usr/sbin/exportfs -r
> rc5.d/S60nfs:	# reset input queue for rest of network services
> rc5.d/S60nfs: action $"Shutting down NFS services: " /usr/sbin/exportfs
> -au
> rc5.d/K35winbind:	echo -n $"Starting $KIND services: "
> rc5.d/K35winbind:	echo -n $"Shutting down $KIND services: "
> rc5.d/S91smb:#	       used to provide SMB network services.
> 
> rc5.d/S91smb:	echo -n $"Starting $KIND services: "
> 
> rc5.d/S91smb:	echo -n $"Starting $KIND services: "
> 
> rc5.d/S91smb:	echo -n $"Shutting down $KIND services: "
> 
> rc5.d/S91smb:	echo -n $"Shutting down $KIND services: "
> 
> rc5.d/S56xinetd:#              logging capabilities, the ability to make
> services \
> 
> rc5.d/S56xinetd:    # Need to get rid of localization for external
> services - 
> 
> rc5.d/S91vncserver:#	       used to provide remote X administration
> services.
> 
> rc5.d/K74ypserv:	echo -n $"Starting YP server services: "
> 
> rc5.d/K74ypserv:        echo -n $"Stopping YP server services: "
> 
> rc6.d/S00killall:# Bring down all unneeded services that are still
> running (there shouldn't 
> 
> rc6.d/K96pcmcia:	echo -n $"Starting PCMCIA services:"
> 
> rc6.d/K96pcmcia:	echo -n $"Shutting down PCMCIA services:"
> 
> rc6.d/K15gpm:	echo -n $"Starting console mouse services: "
> 
> rc6.d/K15gpm:	echo -n $"Shutting down console mouse services: "
> 
> rc6.d/K91isdn:# description: start and stop ISDN services
> 
> rc6.d/K20nfs:#               the NFS services.
> 
> rc6.d/K20nfs:	action $"Starting NFS services: " /usr/sbin/exportfs -r
> 
> rc6.d/K20nfs:	# reset input queue for rest of network services
> 
> rc6.d/K20nfs:	action $"Shutting down NFS services: "
> /usr/sbin/exportfs -au
> 
> rc6.d/K35winbind:	echo -n $"Starting $KIND services: "
> 
> rc6.d/K35winbind:	echo -n $"Shutting down $KIND services: "
> 
> rc6.d/K35smb:#	       used to provide SMB network services.
> 
> rc6.d/K35smb:	echo -n $"Starting $KIND services: "
> 
> rc6.d/K35smb:	echo -n $"Starting $KIND services: "
> 
> rc6.d/K35smb:	echo -n $"Shutting down $KIND services: "
> 
> rc6.d/K35smb:	echo -n $"Shutting down $KIND services: "
> 
> rc6.d/K50xinetd:#              logging capabilities, the ability to make
> services \
> 
> rc6.d/K50xinetd:    # Need to get rid of localization for external
> services - 
> 
> rc6.d/K35vncserver:#	       used to provide remote X administration
> services.
> 
> rc6.d/K74ypserv:	echo -n $"Starting YP server services: "
> 
> rc6.d/K74ypserv:        echo -n $"Stopping YP server services: "
> 
> rc.sysinit:# Adjust symlinks as necessary in /boot to keep system
> services from
> 
> [root at itact rc.d]#

Nothing odd there.  Note that all of the stuff in "rcx.d" are simply
symlinks to stuff in /etc/rc.d/init.d, and that's why you see the same
stuff over and over.

Ok, check the /etc/rc.d/rc.local script and see if it's running
something weird.  Remember that if it's running a program that grabs
the console, it must be run with a "&" at the end so it runs in the
background:

	programname &

Ideally you'd probably want to send it's stdout and stderr to the bit
bucket so you don't get messages on the console.  The first line below
would send output to the bit bucket, the second should log output to
/var/log/messages:

	programname >/dev/null 2>&1 &
	programname | logger 2>&1 &

The trailing "&" causes the program to run in a subshell and releases
the console.  If that's not done, the startup can't complete until the
program exits, and I suspect that's what's happening with your stuff.
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer     rstevens at vitalstream.com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-             To iterate is human, to recurse, divine.               -
----------------------------------------------------------------------




More information about the Redhat-install-list mailing list