From: noyd@u.washington.edu (Steven Noyd Jones)
Subject: Re: Why do I get SIGHUP during bootup?
Date: 12 Aug 1994 23:57:06 GMT [thread overview]
Message-ID: <32h28i$t8c@news.u.washington.edu> (raw)
In-Reply-To: 32gkqf$1nd@heliotrope.bucknell.edu
In article <32gkqf$1nd@heliotrope.bucknell.edu>,
Greg Smith <smith@bucknell.edu> 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
prev parent reply other threads:[~1994-08-12 23:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-08-12 20:07 Why do I get SIGHUP during bootup? Greg Smith
1994-08-12 23:57 ` Steven Noyd Jones [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox