From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII X-Google-Thread: fee84,2d645882a6c54f8a X-Google-Attributes: gidfee84,public From: Oisin McGuinness Subject: Re: Run a script on the startup Date: 1998/06/03 Message-ID: <35758515.136A94FD@sbcm.com>#1/1 X-Deja-AN: 359202190 Content-Transfer-Encoding: 8bit References: <35754FE5.AEFA8676@mail.telepac.pt> To: dinis.teixeira@mail.telepac.pt Content-Type: text/plain; charset=iso-8859-1 X-Complaints-To: Email abuse@news2.new-york.net if this posting is inappropriate X-Trace: news2.new-york.net 896894233 13938 sysadmin [204.141.189.11] Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 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