rc script running twice ???

Kevin D. Clark kevin_d_clark at comcast.net
Thu Jan 27 15:57:41 EST 2011


Drew Van Zandt writes:

> /etc/rc2.d/S40init_xuarts start
> root       498  0.0  0.8   2808   504 ttyS0    S+   00:00   0:00      \_
> /bin/sh /etc/rc2.d/S40init_xuarts start
> root       500  0.1  0.9   1676   576 ttyS0    S+   00:00   0:00          \_
> sed s/ttyname=//

.....

> # Barcode
> ln -s -f `/usr/local/bin/xuartctl -d --speed=115200 --mode=7e1 -p 1 2>&1
> |sed s/ttyname=//` /dev/barcode
> # Copleys
> ln -s -f `/usr/local/bin/xuartctl -d --speed=9600 --mode=8n1 -p 2 2>&1 |sed
> s/ttyname=//` /dev/copley
> # Watlows
> ln -s -f `/usr/local/bin/xuartctl -d --speed=38400 --mode=8n1 -p 5 2>&1 |sed
> s/ttyname=//` /dev/watlow


I think that your multiple S40init_xuarts entries in the process table
are a result of the subshells that you are running via `backticks`.

This is the behavior of the shell.

Furthermore, since you are apparently seeing something hang here, I'll
bet that one of your invocations of /usr/local/bin/xuartctl is hanging
somehow.  If it wasn't hanging, then you'd have a very difficult time
seeing this in the process table.

Regards,

--kevin
-- 
alumni.unh.edu!kdc / http://kdc-blog.blogspot.com/
GnuPG: D87F DAD6 0291 289C EB1E 781C 9BF8 A7D8 B280 F24E

 Wipe him down with gasoline 'til his arms are hard and mean
 From now on boys this iron boat's your home
 So heave away, boys.
   -- Tom Waits


More information about the gnhlug-discuss mailing list