* Run a script on the startup
@ 1998-06-03 4:00 Dinis Teixeira
1998-06-03 4:00 ` Oisin McGuinness
0 siblings, 1 reply; 3+ messages in thread
From: Dinis Teixeira @ 1998-06-03 4:00 UTC (permalink / raw)
Hello!
I�m having some dificulties on starting a script , on the system
startup (DigitalUnix 4.0D).
I�ve made as usually, a script file on the /sbin/rc3.d directory,
started by S99xxx . On the startup messages i can see that "apparently"
the script run�s (i can see the echo�s), but the processes don�t
disappear later.
I�ve found out that I can start manually the processes on a Window,
and they run ok in background, but if i close the window they disappear
with it (Probably this is the problem).
Thank�s for any clue�s.
Dinis
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Run a script on the startup
1998-06-03 4:00 Run a script on the startup Dinis Teixeira
@ 1998-06-03 4:00 ` Oisin McGuinness
1998-06-03 4:00 ` Marek Pola
0 siblings, 1 reply; 3+ messages in thread
From: Oisin McGuinness @ 1998-06-03 4:00 UTC (permalink / raw)
To: dinis.teixeira
There have been some discussions of writing startup scripts recently, and
also about a year ago, on the alpha managers
list.
You should be aware that:
a) you need to know how to write code in the program your script is
starting which daemon'izes it correctly (closes its file descriptors,
change process group etc. etc.) Excellent code for doing this is given in
W. Stevens "Advanced Programming in the Unix
environment", Chapter 13. This book cannot be recommended too highly.
b) init sends the startup scripts HUP's; so your program will need to
ignore or handle SIGHUP, or it will go away immediately.
Hope this helps.
Oisin McGuinness
SBCM
277 Park Ave.
New York NY 10172
USA
oisin@sbcm.com
Dinis Teixeira wrote:
> Hello!
>
> I�m having some dificulties on starting a script , on the system
> startup (DigitalUnix 4.0D).
>
> I�ve made as usually, a script file on the /sbin/rc3.d directory,
> started by S99xxx . On the startup messages i can see that "apparently"
> the script run�s (i can see the echo�s), but the processes don�t
> disappear later.
>
> I�ve found out that I can start manually the processes on a Window,
> and they run ok in background, but if i close the window they disappear
> with it (Probably this is the problem).
>
> Thank�s for any clue�s.
>
> Dinis
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Run a script on the startup
1998-06-03 4:00 ` Oisin McGuinness
@ 1998-06-03 4:00 ` Marek Pola
0 siblings, 0 replies; 3+ messages in thread
From: Marek Pola @ 1998-06-03 4:00 UTC (permalink / raw)
Don't know if this helps, but probably it will work better if you use
the "nohup" command to start your processes. Then they won't die when
you close the window or stop the calling script.
/Marek
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1998-06-03 4:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-06-03 4:00 Run a script on the startup Dinis Teixeira
1998-06-03 4:00 ` Oisin McGuinness
1998-06-03 4:00 ` Marek Pola
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox