From 96f1c3e7ad11932115ca6c5f7ad80aef7608859b Mon Sep 17 00:00:00 2001 From: kueller Date: Mon, 3 Jan 2011 10:48:06 +0000 Subject: [PATCH] Neue Version V963 git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_xinetd@5933 504e572c-2e33-0410-9681-be2bf7408885 --- etc/init.d/xinetd | 59 +++++++++++++++++++++++++++++++++++++ etc/init/xinetd.conf | 11 +++++++ etc/xinetd.conf | 50 +++++++++++++++++++++++++++++++ etc/xinetd.d/chargen-dgram | 10 +++++++ etc/xinetd.d/chargen-stream | 10 +++++++ etc/xinetd.d/daytime-dgram | 10 +++++++ etc/xinetd.d/daytime-stream | 10 +++++++ etc/xinetd.d/echo-dgram | 10 +++++++ etc/xinetd.d/echo-stream | 10 +++++++ etc/xinetd.d/ntalk | 12 ++++++++ etc/xinetd.d/time-dgram | 10 +++++++ etc/xinetd.d/time-stream | 10 +++++++ init/genpkg | 50 +++++++++++++++++++++++++++++++ 13 files changed, 262 insertions(+) create mode 100755 etc/init.d/xinetd create mode 100644 etc/init/xinetd.conf create mode 100644 etc/xinetd.conf create mode 100644 etc/xinetd.d/chargen-dgram create mode 100644 etc/xinetd.d/chargen-stream create mode 100644 etc/xinetd.d/daytime-dgram create mode 100644 etc/xinetd.d/daytime-stream create mode 100644 etc/xinetd.d/echo-dgram create mode 100644 etc/xinetd.d/echo-stream create mode 100644 etc/xinetd.d/ntalk create mode 100644 etc/xinetd.d/time-dgram create mode 100644 etc/xinetd.d/time-stream create mode 100644 init/genpkg diff --git a/etc/init.d/xinetd b/etc/init.d/xinetd new file mode 100755 index 0000000..ab484ea --- /dev/null +++ b/etc/init.d/xinetd @@ -0,0 +1,59 @@ +#!/bin/bash +#Framework, welches ein komplettes Linux System aus den Sourcen erstellt +#dieses Framework wird im CVS Repository +#:pserver:cvs.compuextreme.de:/Data/cvs zur Verfügung gestellt +# +#Lage dieser Datei im Archiv: $Source$ +# +#(c) 2003 Harald Kueller, Germany +#This program is free software; you can redistribute it and/or +#modify ist under the terms of the GNU General Public License +#as published by the Free Software Foundation; either version +#2 of the License, or (at your option) any later version. +# +#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. +# +#InitScript zum Start des Daemons: +# +#Letzte Änderung von: $Author$ +#Datum der letzten Änderung: $Date$ +#Version der Datei: $Revision$ +# +#$Log$ +#Revision 1.1 2006/06/20 09:17:39 kueller +#start/stop script fuer init hinzugefuegt +# +# + +source /etc/init.d/functions + +case "$1" in + start) + echo -n "Starting xinetd" + loadproc xinetd -filelog /var/log/xinetd.log + ;; + + stop) + echo -n "Stopping xinetd" + killproc xinetd + ;; + + restart) + $0 stop + sleep 1 + $0 start + ;; + + *) + echo "Usage: $0 {start|stop|restart}" + exit 1 + ;; + +esac diff --git a/etc/init/xinetd.conf b/etc/init/xinetd.conf new file mode 100644 index 0000000..eba3140 --- /dev/null +++ b/etc/init/xinetd.conf @@ -0,0 +1,11 @@ +description "Startup xinet daemon after rpc" +author "Harald Kueller " +version 1.0 +emits none special + +start on (runlevel [2345] and (started rpc)) +stop on (runlevel [016] and (stopping rpc)) + +console none + +exec /usr/sbin/xinetd -filelog /var/log/xinetd.log -dontfork diff --git a/etc/xinetd.conf b/etc/xinetd.conf new file mode 100644 index 0000000..41904e0 --- /dev/null +++ b/etc/xinetd.conf @@ -0,0 +1,50 @@ +# +# This is the master xinetd configuration file. Settings in the +# default section will be inherited by all service configurations +# unless explicitly overridden in the service configuration. See +# xinetd.conf in the man pages for a more detailed explanation of +# these attributes. + +defaults +{ +# The next two items are intended to be a quick access place to +# temporarily enable or disable services. +# +# enabled = +# disabled = + +# Define general logging characteristics. + log_type = SYSLOG daemon info + log_on_failure = HOST + log_on_success = PID HOST DURATION EXIT + +# Define access restriction defaults +# +# no_access = +# only_from = +# max_load = 0 + cps = 50 10 + instances = 50 + per_source = 10 + +# Address and networking defaults +# +# bind = +# mdns = yes + v6only = no + +# setup environmental attributes +# +# passenv = + groups = yes + umask = 002 + +# Generally, banners are not used. This sets up their global defaults +# +# banner = +# banner_fail = +# banner_success = +} + +includedir /etc/xinetd.d + diff --git a/etc/xinetd.d/chargen-dgram b/etc/xinetd.d/chargen-dgram new file mode 100644 index 0000000..05cbe9f --- /dev/null +++ b/etc/xinetd.d/chargen-dgram @@ -0,0 +1,10 @@ +service chargen +{ + id = chargen-dgram + protocol = udp + socket_type = dgram + type = INTERNAL + user = root + wait = yes + disable = no +} diff --git a/etc/xinetd.d/chargen-stream b/etc/xinetd.d/chargen-stream new file mode 100644 index 0000000..053b946 --- /dev/null +++ b/etc/xinetd.d/chargen-stream @@ -0,0 +1,10 @@ +service chargen +{ + id = chargen-stream + protocol = tcp + socket_type = stream + type = INTERNAL + user = root + wait = no + disable = no +} diff --git a/etc/xinetd.d/daytime-dgram b/etc/xinetd.d/daytime-dgram new file mode 100644 index 0000000..eec807a --- /dev/null +++ b/etc/xinetd.d/daytime-dgram @@ -0,0 +1,10 @@ +service daytime +{ + id = daytime-dgram + protocol = udp + socket_type = dgram + type = INTERNAL + user = root + wait = yes + disable = no +} diff --git a/etc/xinetd.d/daytime-stream b/etc/xinetd.d/daytime-stream new file mode 100644 index 0000000..f4b523a --- /dev/null +++ b/etc/xinetd.d/daytime-stream @@ -0,0 +1,10 @@ +service daytime +{ + id = daytime-stream + protocol = tcp + socket_type = stream + type = INTERNAL + user = root + wait = no + disable = no +} diff --git a/etc/xinetd.d/echo-dgram b/etc/xinetd.d/echo-dgram new file mode 100644 index 0000000..6e3c17b --- /dev/null +++ b/etc/xinetd.d/echo-dgram @@ -0,0 +1,10 @@ +service echo +{ + id = echo-dgram + protocol = udp + socket_type = dgram + type = INTERNAL + user = root + wait = yes + disable = no +} diff --git a/etc/xinetd.d/echo-stream b/etc/xinetd.d/echo-stream new file mode 100644 index 0000000..8bb6f50 --- /dev/null +++ b/etc/xinetd.d/echo-stream @@ -0,0 +1,10 @@ +service echo +{ + id = echo-stream + protocol = tcp + socket_type = stream + type = INTERNAL + user = root + wait = no + disable = no +} diff --git a/etc/xinetd.d/ntalk b/etc/xinetd.d/ntalk new file mode 100644 index 0000000..d1b198d --- /dev/null +++ b/etc/xinetd.d/ntalk @@ -0,0 +1,12 @@ +# Begin /etc/xinetd.d/ntalk + +service ntalk +{ + disable = no + socket_type = dgram + wait = yes + user = root + server = /usr/sbin/talkd +} + +# End /etc/xinetd.d/ntalk diff --git a/etc/xinetd.d/time-dgram b/etc/xinetd.d/time-dgram new file mode 100644 index 0000000..7e3ab66 --- /dev/null +++ b/etc/xinetd.d/time-dgram @@ -0,0 +1,10 @@ +service time +{ + id = time-dgram + protocol = udp + socket_type = dgram + type = INTERNAL + user = root + wait = yes + disable = no +} diff --git a/etc/xinetd.d/time-stream b/etc/xinetd.d/time-stream new file mode 100644 index 0000000..267488d --- /dev/null +++ b/etc/xinetd.d/time-stream @@ -0,0 +1,10 @@ +service time +{ + id = time-stream + protocol = tcp + socket_type = stream + type = INTERNAL + user = root + wait = no + disable = no +} diff --git a/init/genpkg b/init/genpkg new file mode 100644 index 0000000..836375d --- /dev/null +++ b/init/genpkg @@ -0,0 +1,50 @@ +#!/bin/bash +#Automatische Generierung von glibc +#Script Framework - Automatisiertes Erzeugen der Monsum Linux Distribution +#(c) Rainmaker MultiMedia OHG +# +#$Author$ +#$Date$ +#$Revision$ +# +#$Log$ +#Revision 1.2 2006/06/20 09:17:04 kueller +#xinetd wird nun standart ueber /etc/init.d/startstopscript gemanaged +# +#Revision 1.4 2001/10/17 10:11:18 kueller +#Rechtekorrektur für init script +# +#Revision 1.3 2001/10/10 19:26:37 kueller +#Korrektur beim Anlegen der start/stop Links in den Runleveln +#Es darf nicht lS25postgresql heissen..:-)) +#und: +#Runlevel 2 - Start der minimal Notwendigen Dienste +#Runlevel 3 - Start in den kompletten Servermodus +#Runlevel 4 - Erweiterter Modus (z.B. Grafische Oberfläche) +#Runlevel 5 - noch nicht definiert +# +#-> Daher muss postgresql eindeutig ab RunLevel 3 gestartet werden +# +#Revision 1.2 2001/10/08 08:36:37 kueller +#cvs header hinzugefügt +# +# + +if [ -d /var/install/sysvinit* ]; then + WDIR=`pwd` + cd etc/init.d + chmod 755 xinetd + mkdir rc{0,1,2,3,4,5,6}.d + for i in 0 1 2 6; do + cd rc$i.d + ln -s ../xinetd K75xinetd + cd .. + done + for i in 3 4 5; do + cd rc$i.d + ln -s ../xinetd S12xinetd + cd .. + done + cd $WDIR +fi + ~