init script problem in rc.d

max y max8y at yahoo.com
Fri Feb 15 15:21:03 UTC 2008


Here is,

ls -l /proc/$$/fd
lrwx------    1 root     root           64 Jan  1
16:36 0 -> /dev/console
lrwx------    1 root     root           64 Jan  1
16:36 1 -> /dev/console
lrwx------    1 root     root           64 Jan  1
16:36 2 -> /dev/console
lrwx------    1 root     root           64 Jan  1
16:36 255 -> /dev/console

sh-2.05b# cat /proc/$$/stat
108 (sh) S 107 108 96 1088 110 256 465 238 0 1 1 2 0 1
16 0 1 0 5974964 3858432 378 2147483647 4194304 497
0380 2147450480 2147449072 717626124 0 131072
109068292 1745600251 0 0 0 18 0 0 0
--- Denys Vlasenko <vda.linux at googlemail.com> wrote:

> On Thursday 14 February 2008 15:37, max y wrote:
> > I mean for normal case, if I press Ctrl-C, it does
> not
> > interupt the execution of
> /etc/rc.d/rc?.d/Smyscript.
> > In my case it does.
> 
> Can you add a sh invocation in the middle of the
> script:
> 
> sh
> 
> so that it drops you into a shell prompt? Do
> 
> ls -l /proc/$$/fd
> cat /proc/$$/stat
> (you can continue your script by typing "exit")
> 
> and show the output of both commands.
> 
> For example:
> 
> # cat /proc/$$/stat
> 4586 (bash) S 2088 4586 4586 34820 ....
>               ppid pgid sid  tty
> 
> That fourth number is controlling tty's major+minor.
> What will you see there?
> --
> vda
> 



      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs



More information about the busybox mailing list