* Why do I get SIGHUP during bootup?
@ 1994-08-12 20:07 Greg Smith
1994-08-12 23:57 ` Steven Noyd Jones
0 siblings, 1 reply; 2+ messages in thread
From: Greg Smith @ 1994-08-12 20:07 UTC (permalink / raw)
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
==========================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Why do I get SIGHUP during bootup?
1994-08-12 20:07 Why do I get SIGHUP during bootup? Greg Smith
@ 1994-08-12 23:57 ` Steven Noyd Jones
0 siblings, 0 replies; 2+ messages in thread
From: Steven Noyd Jones @ 1994-08-12 23:57 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1994-08-12 23:57 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-08-12 20:07 Why do I get SIGHUP during bootup? Greg Smith
1994-08-12 23:57 ` Steven Noyd Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox