# $Id$ # Main page of 'My::Project::inetdmx' # Copyright (C) 2005 Jan Kratochvil # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; exactly version 2 of June 1991 is required # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA package project::inetdmx::Index; require 5.6.0; # at least 'use warnings;' but we need some 5.6.0+ modules anyway our $VERSION=do { my @r=(q$Revision$=~/\d+/g); sprintf "%d.".("%03d"x$#r),@r; }; our $CVS_ID=q$Id$; use strict; use warnings; use My::Web; Wuse 'project::Lib'; Wrequire 'product::Lib'; our @ListItem=( "name"=>"inetdmx", "platform"=>"unixuser", "priority"=>435, "cvs"=>"inetdmx", "link-Source file"=>'http://git.jankratochvil.net/?p=inetdmx.git;a=blob_plain;hb=HEAD;f=inetdmx.c', "summary"=>"xinetd(8)/inetd(8) on-demand servers multiplexor", "license"=>"GPL", "maintenance"=>"ready", "language"=>"C", "description"=>sub { return <<"HERE"; },

Designed for @{[ a_href 'http://httpd.apache.org/','Apache httpd' ]} - do you have some resource intensive server which is used only occasionally? Such as shadow copy of your primary server for testing purposes.

HERE ); sub handler { project::Lib->init(); print <<"HERE";

inetdmx is TCP based and it is standalone-only and/or its startup is too slow this tool will start the server only if it is needed and shuts it down if it gets idle while proxying all the TCP connections to it in the meantime.

It is hooked both from xinetd(8) or inetd(8) (startups/proxying) and from crond(8) (idle shutdown).

Example is provided for httpd-stage-perl expected as your shadow instance of @{[ a_href 'http://httpd.apache.org/','httpd' ]}.

HERE exit; } 1;