Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Oisin McGuinness <oisin@sbcm.com>
To: dinis.teixeira@mail.telepac.pt
Subject: Re: Run a script on the startup
Date: 1998/06/03	[thread overview]
Message-ID: <35758515.136A94FD@sbcm.com> (raw)
In-Reply-To: 35754FE5.AEFA8676@mail.telepac.pt


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






  reply	other threads:[~1998-06-03  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-06-03  4:00 Run a script on the startup Dinis Teixeira
1998-06-03  4:00 ` Oisin McGuinness [this message]
1998-06-03  4:00   ` Marek Pola
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