From: felawka@alph04.triumf.ca (Larry Felawka)
Subject: Re: starting user program at boot time
Date: 31 Aug 1994 21:58:46 GMT [thread overview]
Message-ID: <342uem$ihm@nntp.ucs.ubc.ca> (raw)
In-Reply-To: kiNBWai00WBN072rYz@andrew.cmu.edu
In article <kiNBWai00WBN072rYz@andrew.cmu.edu> Stan Joseph Simon <ssb6+@andrew.cmu.edu> 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
prev parent reply other threads:[~1994-08-31 21:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-08-31 19:23 starting user program at boot time Stan Joseph Simon
1994-08-31 21:58 ` Larry Felawka [this message]
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