From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,78d60789968fab19 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-11-28 04:42:30 PST Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!news.sprintlink.net!EU.net!uknet!strath-cs!news.staffs.ac.uk!news.staffs.ac.uk!news From: cstrmr@staffs.ac.uk (Richard Rogers) Newsgroups: comp.unix.osf.osf1 Subject: Re: rc3/rc3.d problems Date: 28 Nov 1994 10:20:32 -0000 Organization: Staffordshire University Distribution: world Message-ID: <3bcatg$djk@bs33d.staffs.ac.uk> References: Reply-To: cstrmr@staffs.ac.uk NNTP-Posting-Host: bkau1.staffs.ac.uk X-Newsreader: mxrn 6.18-16 In article , top@ccrs.emr.ca (Andrew Top) writes: > I'm planning to have ArcInfo licensed automatically each >time the Alpha boots up. From what I've read this is done with >the rc3/rc3.d utility. What I've done is inserted the line in >the rc3 file but although the line came up saying that the >ArcInfo license was started it wasn't. I then removed that and >added a file (S99.....) to the rc3.d directory with the line >that starts the license manager. Unfortunately that didn't work >either. > > The line I'm using works at the prompt but not as a startup >process. Could someone inform me as to what I'm doing wrong? >What shell are these run in? Am I right about rc3, that I >shouldn't be using rc1 or rc2? > > Thanks in advance... > >Andrew Top top@ccrs.emr.ca > I have just been through more or less the same hoop myself; I got a wide variety of responses from readers of the alpha-osf-managers mailing list, which I summarized back to the list as follows: -------------------------------------------------------------- Many thanks to all who responded (and so quickly)! It seems from the variety of responses I got that there may well be more than one cause (maybe several) of daemons not starting as expected at boot time - particularly as I was only able to get my sample daemon (DEC's MH pop daemon) going correctly by one method (no. 1 below). Some I could not test as I don't have the source code. So here are all the suggestions I have received to date; some may work better in other circumstances, I guess (they all work for someone!) 1. In the startup script, in place of "command", put at now + 1 minute startup-script where startup-script contains the necessary command(s). 2. As above but just "at now ..." (no delay) This may work as well as (1), but having got it working... 3. General problem with terminal output? (No specific cure provided) 4. In the startup script, in place of "command", put /usr/bin/nohup command 5. Change the daemon command to include a call to setsid(), making the process a process group leader. 6. Use a separate "wrapper" program to do the setsid() call and then execvp() the daemon program 7. Put the (undocumented) "daemon()" call in the source code. Credits to: Craig I Hagan Ofer Gan Bede Webster Bonfield James Steve Rosen John Kohl Martyn Johnson Ray Bellis with apologies for my very simplified summaries! Richard ________________________________________ Richard M Rogers Computing Services Staffordshire University Tel. 0785 (+44 785) 275396 E-mail: r.m.rogers@staffs.ac.uk or cstrmr@staffs.ac.uk -- =========================================================================== Richard M Rogers E-mail: cstrmr@staffs.ac.uk Computing Services OR R.M.Rogers@staffs.ac.uk Staffordshire University Tel: 01785 (+44 1785) 275396