Linux Startup
tony.chamberlain at lemko.com
tony.chamberlain at lemko.com
Mon Dec 3 13:37:18 UTC 2007
I have a program I want started at system startup time, and also monitored so if it dies it will be restarted.
I see two options but problems with both:
1) Put it into /etc/inittab
This would work, EXCEPT I need to do some stuff first. I need to do a cd, and add some stuff to the
PATH and LD_LIBRARY_PATH. And I can't do (as far as I can tell, as I tried):
x:respawn:cd /root/inittab; LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD";./Vms
I think you have to run from root
2) Put into /etc/rc*.d
Then I could do all the path setup, etc, but how do I get it to respawn if it somehow dies?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20071203/1481a554/attachment-0001.htm>
More information about the fedora-list
mailing list