One option at CentOS 6 (probably not the best one, but it works for me
since many years) is to put an entry into /etc/inittab

That is how I run a Perl script (as user "nobody") acting as a daemon for a
multiplayer game and redirect output into /tmp/log-Mon.txt /tmp/log-Tue.txt
etc.:

game:3:respawn:/bin/su -c '/usr/local/bin/game.pl >/tmp/log-`date +%a`.txt
2>&1' nobody

You could probably do the same with 'java -cp ... com.your.jetty.class'


On 04/05/2016, at 10:13, Michele Rossi <[email protected]> wrote:
>
> we are running Jetty on CentOS  6.5 (Kernel  2.6.32-431.el6.x86_64) and
> it's installed as a service using chkconfig.
>
> What's missing is that the process does not restart if it dies or it's
> killed which is a real problem.
>
>
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users

Reply via email to