Xref: utzoo comp.unix.wizards:13401 comp.unix.questions:10645 Path: utzoo!attcan!uunet!portal!cup.portal.com!Friedrich From: Friedrich@cup.portal.com (Frank G Kienast) Newsgroups: comp.unix.wizards,comp.unix.questions Subject: Re: /etc/rc.2 and background processes Message-ID: <12504@cup.portal.com> Date: 11 Dec 88 23:10:57 GMT References: <890@creare.UUCP> Organization: The Portal System (TM) Lines: 19 >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@cup.portal.com s ?