From 2e9dd08cf5766960c26a097ed8db740a018ba739 Mon Sep 17 00:00:00 2001 From: lace <> Date: Sun, 18 Dec 2005 00:27:14 +0000 Subject: [PATCH 1/1] Somehow 'packaged'. --- .cvsignore | 1 + Makefile | 13 +++++++++++++ inetdmx.cron-hourly | 10 ++++++++++ inetdmx.xinetd | 15 +++++++++++++++ 4 files changed, 39 insertions(+) create mode 100644 .cvsignore create mode 100644 Makefile create mode 100755 inetdmx.cron-hourly create mode 100644 inetdmx.xinetd diff --git a/.cvsignore b/.cvsignore new file mode 100644 index 0000000..342e334 --- /dev/null +++ b/.cvsignore @@ -0,0 +1 @@ +inetdmx diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..61d6926 --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +# $Id$ + +TARGET=inetdmx + +CFLAGS=-Wall + +.PHONY: all +all: $(TARGET) + +.PHONY: clean +clean: + $(RM) $(TARGET) + diff --git a/inetdmx.cron-hourly b/inetdmx.cron-hourly new file mode 100755 index 0000000..7e45609 --- /dev/null +++ b/inetdmx.cron-hourly @@ -0,0 +1,10 @@ +#! /bin/bash +# $Id$ + + +# See also: /etc/xinetd.d/httpd-stage-perl-xinetd +exec /root/src/inetdmx --stop \ + --idle-server-timeout $[30*60] \ + --lock /var/lock/httpd-stage-perl-inetdmx.lock \ + --syslog \ + /etc/init.d/httpd-stage-perl stop diff --git a/inetdmx.xinetd b/inetdmx.xinetd new file mode 100644 index 0000000..619920e --- /dev/null +++ b/inetdmx.xinetd @@ -0,0 +1,15 @@ +# $Id$ + +service httpd-stage-perl-xinetd +{ + disable = no + port = 83 + type = UNLISTED + socket_type = stream + protocol = tcp + wait = no + user = root + bind = 127.0.0.1 + server = /root/src/inetdmx/inetdmx + server_args = --start --start-command-timeout 60 --lock /var/lock/httpd-stage-perl-inetdmx.lock --syslog --port 84 /etc/init.d/httpd-stage-perl start;true +} -- 1.8.3.1