Neue Version V963
git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_xinetd@5933 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
commit
96f1c3e7ad
59
etc/init.d/xinetd
Executable file
59
etc/init.d/xinetd
Executable file
@ -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
|
11
etc/init/xinetd.conf
Normal file
11
etc/init/xinetd.conf
Normal file
@ -0,0 +1,11 @@
|
||||
description "Startup xinet daemon after rpc"
|
||||
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
||||
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
|
50
etc/xinetd.conf
Normal file
50
etc/xinetd.conf
Normal file
@ -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
|
||||
|
10
etc/xinetd.d/chargen-dgram
Normal file
10
etc/xinetd.d/chargen-dgram
Normal file
@ -0,0 +1,10 @@
|
||||
service chargen
|
||||
{
|
||||
id = chargen-dgram
|
||||
protocol = udp
|
||||
socket_type = dgram
|
||||
type = INTERNAL
|
||||
user = root
|
||||
wait = yes
|
||||
disable = no
|
||||
}
|
10
etc/xinetd.d/chargen-stream
Normal file
10
etc/xinetd.d/chargen-stream
Normal file
@ -0,0 +1,10 @@
|
||||
service chargen
|
||||
{
|
||||
id = chargen-stream
|
||||
protocol = tcp
|
||||
socket_type = stream
|
||||
type = INTERNAL
|
||||
user = root
|
||||
wait = no
|
||||
disable = no
|
||||
}
|
10
etc/xinetd.d/daytime-dgram
Normal file
10
etc/xinetd.d/daytime-dgram
Normal file
@ -0,0 +1,10 @@
|
||||
service daytime
|
||||
{
|
||||
id = daytime-dgram
|
||||
protocol = udp
|
||||
socket_type = dgram
|
||||
type = INTERNAL
|
||||
user = root
|
||||
wait = yes
|
||||
disable = no
|
||||
}
|
10
etc/xinetd.d/daytime-stream
Normal file
10
etc/xinetd.d/daytime-stream
Normal file
@ -0,0 +1,10 @@
|
||||
service daytime
|
||||
{
|
||||
id = daytime-stream
|
||||
protocol = tcp
|
||||
socket_type = stream
|
||||
type = INTERNAL
|
||||
user = root
|
||||
wait = no
|
||||
disable = no
|
||||
}
|
10
etc/xinetd.d/echo-dgram
Normal file
10
etc/xinetd.d/echo-dgram
Normal file
@ -0,0 +1,10 @@
|
||||
service echo
|
||||
{
|
||||
id = echo-dgram
|
||||
protocol = udp
|
||||
socket_type = dgram
|
||||
type = INTERNAL
|
||||
user = root
|
||||
wait = yes
|
||||
disable = no
|
||||
}
|
10
etc/xinetd.d/echo-stream
Normal file
10
etc/xinetd.d/echo-stream
Normal file
@ -0,0 +1,10 @@
|
||||
service echo
|
||||
{
|
||||
id = echo-stream
|
||||
protocol = tcp
|
||||
socket_type = stream
|
||||
type = INTERNAL
|
||||
user = root
|
||||
wait = no
|
||||
disable = no
|
||||
}
|
12
etc/xinetd.d/ntalk
Normal file
12
etc/xinetd.d/ntalk
Normal file
@ -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
|
10
etc/xinetd.d/time-dgram
Normal file
10
etc/xinetd.d/time-dgram
Normal file
@ -0,0 +1,10 @@
|
||||
service time
|
||||
{
|
||||
id = time-dgram
|
||||
protocol = udp
|
||||
socket_type = dgram
|
||||
type = INTERNAL
|
||||
user = root
|
||||
wait = yes
|
||||
disable = no
|
||||
}
|
10
etc/xinetd.d/time-stream
Normal file
10
etc/xinetd.d/time-stream
Normal file
@ -0,0 +1,10 @@
|
||||
service time
|
||||
{
|
||||
id = time-stream
|
||||
protocol = tcp
|
||||
socket_type = stream
|
||||
type = INTERNAL
|
||||
user = root
|
||||
wait = no
|
||||
disable = no
|
||||
}
|
50
init/genpkg
Normal file
50
init/genpkg
Normal file
@ -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
|
||||
~
|
Loading…
Reference in New Issue
Block a user