On Fri, 24 Aug 2007, e_fenimore wrote:
> I tried having a program load on boot by adding a line to inittab. For
> some odd reason, it just doesn't run well that way.
You don't say what "run well" means. It could be that init tried to start
your program before all the usually startup stuff has completed - e.g. if
your program expected a functioning network, then the normal startup stuff
might not have initialised the network in time. There could be lots of
reasons.
> Any ideas on a
> preferred method for loading a program on boot?
/etc/inittab entries are one way, it might be something else to do with
your program.
Other ways are to write a customised start/stop script for your demon, put
it in /etc/init.d and link to it from /etc/rc.d/rc3.d as per standard sysV
init procedures.
A simpler way is to edit an existing startup script to also do your start
up. I alter the /etc/init.d/network script to do afew things after it's
started the network.
> I am still
> investigating the cause of it not running well.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|