From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,9b287c59b726cb16 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-08-13 03:53:33 PST Path: bga.com!news.sprintlink.net!hookup!swrinde!howland.reston.ans.net!spool.mu.edu!news.clark.edu!netnews.nwnet.net!news.u.washington.edu!noyd From: noyd@u.washington.edu (Steven Noyd Jones) Newsgroups: comp.unix.osf.osf1 Subject: Re: Why do I get SIGHUP during bootup? Date: 12 Aug 1994 23:57:06 GMT Organization: University of Washington Message-ID: <32h28i$t8c@news.u.washington.edu> References: <32gkqf$1nd@heliotrope.bucknell.edu> NNTP-Posting-Host: homer08.u.washington.edu Keywords: boot init sighup hup In article <32gkqf$1nd@heliotrope.bucknell.edu>, Greg Smith wrote: > >I'm migrating from Ultrix to OSF/1 2.0. In the process of setting up some >of the standard daemons we use to start when we boot, I've run into an odd >problem. (Odd to me, anyway.) > >I made the script in /sbin/init.d and made the appropriate S90file links >in rc3.d. My script gets run and reports that it started the process. >When I check with ps after the system comes up, the process isn't there. >I've tracked this to the fact that my dying processes are receiving a >SIGHUP signal. What is sending SIGHUP to processes started by the init >process and why? If I run the script by hand after the system has >fully booted and I've logged in, everything works perfectly. It's just >that after booting the system, something sends a SIGHUP to the newly >created process. Not knowing what to do with that signal, it dies. > >I was able to add SIGHUP handling code to the program that I had written >and it now works. However, I can't do that for every program that I want >to start at boottime. They aren't all mine. ;-) > >Can you give me an explanation of what is happening? I couldn't find it >in a FAQ or in the OSF/1 manuals (System Administration or the Migration >Guide). Without knowing what's going on with the HUP, I'm not really >very comfortable having it ignored. > >Thanks in advance for any help anyone can give me! I've had a similar problem which was fixed by adding a 'setsid()' call after forking the daemon during startup. My only explanation is that 'init' works a bit differently on OSF/1 than Ultrix, I didn't dig any farther. -- -- Steven Jones Computing & Communications JE-30, University of Washington E-mail: noyd@cac.washington.edu Phone: (206) 543-5852