/etc/rc.2 and background processes
Frank G Kienast
Friedrich at cup.portal.com
Mon Dec 12 09:10:57 AEST 1988
>I think this happens because init is sending a SIGKILL to the
>background process when /etc/rc2 exits, or something like that. The
>inittab has /etc/rc2 running at level 2, but also with the "action"
>specified as "wait". If I have the first script run the second in the
>foreground, everything works, but I have to wait for the whole backup
>to complete before I can login.
>Anyway, I'd like to know what's going on, and also how to make it do
>what I want. Why does the background process die? How can I prevent
>this?
I had a similar problem on a 3B15. All I had to to to cure it was to
start the second process nohup. You might also want to trap both SIGHUP
and SIGKILL. Look at other scripts in /etc/rc2 for examples how to do
this.
Friedrich at cup.portal.com
s
?
More information about the Comp.unix.wizards
mailing list