Display number with inetd
Fri Aug 30 21:58:22 2002
----- Original Message -----
From: "Marc Mazas" <firstname.lastname@example.org>
Sent: Friday, August 30, 2002 12:12 PM
Subject: TR : Display number with inetd
> In my case, the display number is a fixed configuration parameter of the
> Apache Jserv server, and there is only one X client for all the server
> (I assume a servlet), not one X client for each real user. I had the
> idea to use inetd in order to have it relaunch the vnc server in case
> Xvnc terminated for any reason, and thus to hope the application will
> continue to work. So I would have to use the :2 display number, but I
> cannot guarantee it will always be this one ...
If your goal is to always be sure a VNC stays running then you should be
able to do this with a shell script. I haven't tried it, but what comes to
mind is run the vncserver command with the hardcoded display "vncserver :2"
in a cron job every 5 minutes or so. You could keep track of it by doing
something like I saw on the Redhat Valhalla list here:
Also out of curiosity, have you had trouble with Xvnc terminated? Usually
start one session and have it running continuously and I can say that I've
had over 100 days of uptime without VNC causing problems.
Give a man a match, you keep him warm for an evening.
Light him on fire, he's warm for the rest of his life.