Somehow 'packaged'.
authorlace <>
Sun, 18 Dec 2005 00:27:14 +0000 (00:27 +0000)
committerlace <>
Sun, 18 Dec 2005 00:27:14 +0000 (00:27 +0000)
.cvsignore [new file with mode: 0644]
Makefile [new file with mode: 0644]
inetdmx.cron-hourly [new file with mode: 0755]
inetdmx.xinetd [new file with mode: 0644]

diff --git a/.cvsignore b/.cvsignore
new file mode 100644 (file)
index 0000000..342e334
--- /dev/null
@@ -0,0 +1 @@
+inetdmx
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
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 (executable)
index 0000000..7e45609
--- /dev/null
@@ -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 (file)
index 0000000..619920e
--- /dev/null
@@ -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
+}