[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: rc scripts don't terminate



Jorge L. deLyra wrote:
After an unclean reboot, it seems alot of my startup processes are not
ending.  A couple hours after booting, this is a process listing from
'ps faux':

USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
root         8  0.0  0.0  2108   16 ?        T    09:05   0:00 sh
    
                                             __^__

All your sh's are in the STOP state.  Since /bin/sh is a link to bash, the
/bin/bash executable may be corrupted, or something is sending it the STOP
signal. Maybe some library is bad.  Try sending one of these processes the
CONT signal to see what happens. For the case above you can use

kill -CONT 8

Did e2fsck run at all during boot? You may have to burn the /bin/bash file
with a fresh copy of the executable. Simply re-opening the package may not
be feasible with the system in this state...
							Cheers,

----------------------------------------------------------------
        Jorge L. deLyra,  Associate Professor of Physics
            The University of Sao Paulo,  IFUSP-DFMA
       For more information: finger delyra@latt.if.usp.br
----------------------------------------------------------------



  
I tried the kill -CONT command on all the scripts.... the following continued to run:

root        26  0.0  0.0  1360   16 ?        T    09:06   0:00 rm -f /etc/mtab~ /etc/nologin
root        97  0.0  0.0  2108   16 ?        T    09:06   0:00 sh -e /etc/rcS.d/S39ifupdown start
root       116  0.0  0.0  2108   16 ?        T    09:06   0:00 /bin/sh -c run-parts /etc/network/if-pre-up.d
root       122  0.0  0.0  2108   16 ?        T    09:06   0:00 /bin/sh -c run-parts /etc/network/if-up.d
root       125  0.0  0.0  2108   16 ?        T    09:06   0:00 /bin/sh -c run-parts /etc/network/if-pre-up.d
root       128  0.0  0.0  2108   16 ?        T    09:06   0:00 /bin/sh -c ifconfig eth1 192.168.1.251 netmask 255.255.255.0 broadcast 192.168.1.255 ? up
root       134  0.0  0.0  2108   16 ?        T    09:06   0:00 /bin/sh -c run-parts /etc/network/if-up.d
root       294  0.0  0.0  2108   16 ?        T    09:06   0:00 sh /etc/rc2.d/S20caudium start
root       334  0.0  0.0  2108   16 ?        T    09:06   0:00 sh /usr/bin/safe_mysqld
root      1676  0.0  0.3  1512  432 ttyp1    S    14:19   0:00          \_ grep  ?        T
root       406  0.0  0.0  1380   16 ?        T    09:06   0:00 egrep -q ^[[:space:]]*ServerType.*standalone /etc/proftpd.conf
root       522  0.0  0.3  2108  420 ?        T    09:10   0:00 sh -c /usr/lib/cups/backend/http
www-data   980  0.0  0.3  2108  420 ?        T    10:22   0:00 sh -c /usr/sbin/sendmail -t -i
www-data  1124  0.0  0.3  2108  420 ?        T    11:32   0:00 sh -c /usr/sbin/sendmail -t -i
www-data  1136  0.0  0.3  2108  420 ?        T    11:32   0:00 sh -c /usr/sbin/sendmail -t -i
www-data  1231  0.0  0.3  2108  420 ?        T    11:50   0:00 sh -c /usr/sbin/sendmail -t -i
www-data  1355  0.0  0.3  2108  420 ?        T    12:38   0:00 sh -c /usr/sbin/sendmail -t -i

Does this all look normal?  e2fsk keep on running every time I reboot (not sure why it isn't unmounting cleanly).  Is it possible to grab a binary copy of /bin/bash from the install CD?

Dean



Reply to: