Koozali.org: home of the SME Server

RC.Local

Buddy

RC.Local
« on: January 27, 2001, 09:00:11 AM »
This may be a pretty stupid question but I just can't seem to figure out where I would load a program on boot up.  I have edited the RC.Local file in the /etc/rc.d dir which would be standard for System V the program still will not load. I can load it from a command prompt without a problem.  I would appreciate any ideas on how to auto start this.  

Thanks
Buddy

Al G

Re: RC.Local
« Reply #1 on: January 27, 2001, 09:17:16 AM »
i haven't tried it (i just installed), but my guess would be that rc.local will work fine. but be aware that when it gets executed, it's under the root id and the environment may be radically different from that associated with whatever userid you're useing to run it. in particular, you may very well have to specify the full path, or possibly even wrap it in a script that specifies environment variables, etc.

one way to get a hint, depending on the program, of course, is to execute it like this:

/path/to/myprog >/tmp/myprog.log 2>&1

then reboot and go see what /tmp/myprog.log says.

other alternatives are the inittab file and the links in the sysv init runlevel directories, but all of the above applies there equally.

if you've already covered all of that, no offense intended