Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] auto-respawning of jetty as a linux service

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 <michele.rossi@xxxxxxxxx> 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.


Back to the top