<html><br>
I have a program I want started at system startup time, and also monitored so if it dies it will be restarted.<br>I see two options but problems with both:<br><br><br>1) Put it into /etc/inittab<br><br>&nbsp;&nbsp;&nbsp;&nbsp; This would work, EXCEPT I need to do some stuff first.&nbsp; I need to do a cd, and add some stuff to the<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PATH and LD_LIBRARY_PATH.&nbsp; And I can't do (as far as I can tell, as I tried):<br><br><font face="courier new,courier">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; x:respawn:cd /root/inittab; LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PWD";./Vms</font><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I think you have to run from root<br><br><br><br>2) Put into /etc/rc*.d<br><br>&nbsp;&nbsp;&nbsp;&nbsp; Then I could do all the path setup, etc, but how do I get it to respawn if it somehow dies?<br><br><br>
</html>