From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,9b287c59b726cb16,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-08-12 16:11:09 PST Path: bga.com!news.sprintlink.net!hookup!swrinde!howland.reston.ans.net!news.cac.psu.edu!news.pop.psu.edu!psuvax1!coral.bucknell.edu!smith From: smith@heliotrope.bucknell.edu (Greg Smith) Newsgroups: comp.unix.osf.osf1 Subject: Why do I get SIGHUP during bootup? Date: 12 Aug 1994 16:07:43 -0400 Organization: Bucknell University, Lewisburg PA USA Distribution: world Message-ID: <32gkqf$1nd@heliotrope.bucknell.edu> Reply-To: smith@bucknell.edu NNTP-Posting-Host: heliotrope.bucknell.edu Keywords: boot init sighup hup 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! Sincerely, Greg Smith -- ========================================================================== Greg Smith Computer and Communication Services Systems Integrator Bucknell University smith@bucknell.edu (717) 524-1795 Lewisburg PA 17837 USA ==========================================================================