[wt4hq] Win-Test for HQ package 2010
Laurent HAAS - F6FVY
f6fvy at free.fr
Tue Jul 6 12:34:35 CEST 2010
Hi Dieter
Dieter Kritzer a écrit :
> I want to give my server-guy exact informations how to compile and run the server.
> Is it possible to write us all that commands?
Mario sent an example of command in his last post. There is even a
simpler one described in the wtTunnelSrv.c file (with no debug
information). We assume the "server-guy" to have gcc installed on this
server.
> Also I am interested, how we can monitor the server-program, if its still running (watch-dog). I
> think there is a command to watch the server.
>
> Also there is a command, that the program is killed and restarted again every 3 or 5 minutes.
> I hope we would not need that this year, but I want to prepare it.
Mario also described such a script in his last post. It is adapted to
the exe compiled with debug info, and it saves a "core dump" in case of
crash.
With no debug info included, you can also make a script like this one :
#!/bin/sh
PID=$(ps -ef | grep wtTunnelSrv | grep -v grep | awk '{print $2}')
if [ -z $PID ]
then
/usr/local/bin/wtTunnelSrv ... params ... > /var/log/wtTunnelSrv.log 2>&1 &
fi
(paths and params - port, login & password - must be adapted to your
needs), and run this script every X minutes with the cron table. I guess
your "server-guy" knows what I'm talking about.
As you see, there are many options !
73
Larry - F6FVY
More information about the Wt4hq
mailing list