[SPAM] Linux Startup

Nick Gray nagray at austin.rr.com
Mon Dec 3 17:26:17 UTC 2007


You can put this into inittab

On Mon, 2007-12-03 at 13:37 +0000, tony.chamberlain at lemko.com wrote:
> 
> 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?
> 
> 
> -- 
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list




More information about the users mailing list