From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,32b221cece57fc9 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-08-31 18:34:58 PST Path: bga.com!news.sprintlink.net!uunet!gatech!newsxfer.itd.umich.edu!nntp.cs.ubc.ca!unixg.ubc.ca!alph04.triumf.ca!felawka From: felawka@alph04.triumf.ca (Larry Felawka) Newsgroups: comp.unix.osf.osf1 Subject: Re: starting user program at boot time Date: 31 Aug 1994 21:58:46 GMT Organization: TRIUMF Message-ID: <342uem$ihm@nntp.ucs.ubc.ca> References: NNTP-Posting-Host: alph04.triumf.ca In article Stan Joseph Simon writes: > >Is there any way to start a user program at boot time with OSF 1.3? I >have looked at man pages for cron and at and didn't see the "at boot" >option I am used to seeing. > >I then asked my sysadmin for help. We tried adding a startup script to >/sbin/rc3.d, but this did not work. So the program would not be run as >root, but as the user who owns the program, we did a chown and a chmod >u+s. This was not successful--the program ran, but gave an error >message: could not determine user name from uid. BTW, this is a NCSA >httpd server that I would like to have started up at boot time. > >Stan > I had exactly the same problem: how does one start up at boot time a daemon that wants to run as user "foo"? I finally opted for an inelegant solution: start the daemon up in the "/sbin/rc3.d" startup script using the "rsh nodename -l foo ..." command. I had to take care to redirect the (remote) standard output and error streams to the (remote) null pseudodevice, even though it appeared to me that the daemon startup command produced no output at all. _____ Larry