Neue Version V963
git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_ypbind@5933 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
commit
0071f88dd9
72
etc/init.d/ypclient
Normal file
72
etc/init.d/ypclient
Normal file
|
@ -0,0 +1,72 @@
|
||||||
|
#!/bin/sh
|
||||||
|
# Begin /etc/init.d/network
|
||||||
|
# Script zum start des automount Daemons
|
||||||
|
# Wenn die Datei /etc/sysconfig/auto.master vorhanden ist, wird
|
||||||
|
# der automount Daemon gestartet
|
||||||
|
# Die Timeout Konfiguration erfolg über die Datei /etc/sysconfig/autofstime
|
||||||
|
# (c) Rainmaker MultiMedia OHG
|
||||||
|
#
|
||||||
|
# $Author$
|
||||||
|
# $Date$
|
||||||
|
# $Revision$
|
||||||
|
#
|
||||||
|
# $Log$
|
||||||
|
# Revision 1.5 2007/01/25 16:27:33 segler
|
||||||
|
# we should check if yp.conf is present and then decide whether to start ypbind with option broadcast or not...
|
||||||
|
# Now we do...
|
||||||
|
#
|
||||||
|
# Revision 1.4 2006/06/28 12:06:58 kueller
|
||||||
|
# ypbind muss mit -broadcast gestartet werden, oder eine /etc/yp.conf vorliegen
|
||||||
|
#
|
||||||
|
# Revision 1.3 2003/04/19 07:43:45 kueller
|
||||||
|
# Usage Ausgabe um restart option erweitert
|
||||||
|
#
|
||||||
|
# Revision 1.2 2003/04/19 07:41:44 kueller
|
||||||
|
# restart option eingebaut
|
||||||
|
#
|
||||||
|
# Revision 1.1.1.1 2001/09/23 01:16:29 kueller
|
||||||
|
# Neustart wg. Datenverlust
|
||||||
|
#
|
||||||
|
# Revision 1.2 2001/08/25 20:47:47 kueller
|
||||||
|
#
|
||||||
|
# Neue NIS package ist mit config in /etc/sysconfig/nis kompiliert - daher
|
||||||
|
# nun auch defaultdomain in diesem Verzeichniss
|
||||||
|
#
|
||||||
|
# Revision 1.1.1.1 2001/08/24 09:50:52 kueller
|
||||||
|
# AddOns fuer ypbind
|
||||||
|
#
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
source /etc/init.d/functions
|
||||||
|
case "$1" in
|
||||||
|
start)
|
||||||
|
if [ -f /etc/sysconfig/nis/defaultdomain ]; then
|
||||||
|
echo -n "starting NIS Client"
|
||||||
|
domainname `cat /etc/sysconfig/nis/defaultdomain`
|
||||||
|
if [ -f /etc/yp.conf ]; then
|
||||||
|
ypbind
|
||||||
|
else
|
||||||
|
ypbind -broadcast
|
||||||
|
fi
|
||||||
|
evaluate_retval
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
stop)
|
||||||
|
if [ -f /etc/sysconfig/nis/defaultdomain ]; then
|
||||||
|
echo -n "shutting down NIS Client"
|
||||||
|
pkill ypbind
|
||||||
|
evaluate_retval
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
restart)
|
||||||
|
$0 stop
|
||||||
|
sleep 1
|
||||||
|
$0 start
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Usage: $0: {start|stop|restart}"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
#end /etc/inet.d/ypclient
|
23
etc/init/ypclient.conf
Normal file
23
etc/init/ypclient.conf
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
description "If configured, startup ypbind prozess"
|
||||||
|
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
||||||
|
version 1.0
|
||||||
|
emits none special
|
||||||
|
|
||||||
|
start on ( runlevel [2345] and (started rpc))
|
||||||
|
stop on stopping rpc
|
||||||
|
|
||||||
|
console none
|
||||||
|
|
||||||
|
pre-start script
|
||||||
|
if [ ! -d /etc/sysconfig/nis ]; then
|
||||||
|
mkdir /etc/sysconfig/nis
|
||||||
|
fi
|
||||||
|
if [ -f /etc/sysconfig/nis/defaultdomain ]; then
|
||||||
|
domainname `cat /etc/sysconfig/nis/defaultdomain`
|
||||||
|
else
|
||||||
|
exit 10
|
||||||
|
fi
|
||||||
|
end script
|
||||||
|
|
||||||
|
expect daemon
|
||||||
|
exec /usr/sbin/start_ypbind
|
48
init/genpkg
Normal file
48
init/genpkg
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#genpkg Script für ypbind
|
||||||
|
#(c) Rainmaker MultiMedia OHG
|
||||||
|
#
|
||||||
|
#$Author$
|
||||||
|
#$Date$
|
||||||
|
#$Revision$
|
||||||
|
#
|
||||||
|
#$Log$
|
||||||
|
#Revision 1.6 2002/09/11 18:18:22 hkueller
|
||||||
|
#S12 auf S13 geändert. ypclient wird sonst vor ypserv gestartet
|
||||||
|
#
|
||||||
|
#Revision 1.5 2001/10/17 08:44:00 kueller
|
||||||
|
#rechtekorrektur für init script
|
||||||
|
#
|
||||||
|
#Revision 1.4 2001/10/02 22:02:07 kueller
|
||||||
|
#Fehler beim anlegen von etc/sysconfig/nis - Option -p fuer mkdir fehlte
|
||||||
|
#
|
||||||
|
#Revision 1.3 2001/10/02 21:59:38 kueller
|
||||||
|
#sysconfig/nis wurde noch faelschlicherweise unter /etc/init.d/sysconfig/nis
|
||||||
|
#angelegt.
|
||||||
|
#
|
||||||
|
#Revision 1.2 2001/09/28 22:34:49 kueller
|
||||||
|
#/etc/sysconfig/nis wird nun definitiv angelegt
|
||||||
|
#
|
||||||
|
#Revision 1.1.1.1 2001/09/23 01:16:29 kueller
|
||||||
|
#Neustart wg. Datenverlust
|
||||||
|
#
|
||||||
|
#
|
||||||
|
|
||||||
|
WDIR=`pwd`
|
||||||
|
if [ -d /var/install/sysvinit* ]; then
|
||||||
|
mkdir -p etc/sysconfig/nis
|
||||||
|
cd etc/init.d
|
||||||
|
chmod 755 ypclient
|
||||||
|
mkdir rc{0,1,2,3,4,5,6}.d
|
||||||
|
for i in 0 1 6; do
|
||||||
|
cd rc$i.d
|
||||||
|
ln -s ../ypclient K75ypclient
|
||||||
|
cd ..
|
||||||
|
done
|
||||||
|
for i in 2 3 4 5; do
|
||||||
|
cd rc$i.d
|
||||||
|
ln -s ../ypclient S13ypclient
|
||||||
|
cd ..
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
cd $WDIR
|
41
usr/sbin/start_ypbind
Executable file
41
usr/sbin/start_ypbind
Executable file
|
@ -0,0 +1,41 @@
|
||||||
|
#!/bin/bash
|
||||||
|
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
|
||||||
|
#dieses Framework wird im CVS Repository
|
||||||
|
#:pserver:cvs.tramp-bbs.de:/opt/cvs zur Verfügung gestellt
|
||||||
|
#
|
||||||
|
#Lage dieser Datei im Archiv: $HeadURL$
|
||||||
|
#
|
||||||
|
#(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.
|
||||||
|
#
|
||||||
|
#Beschreibung:
|
||||||
|
#Script zum Start von ypbind abhaengig vom
|
||||||
|
#vorhandensein einer yp.conf in /etc.
|
||||||
|
#ist yp.conf nicht vorhanden, soll bind broadcasts machen,
|
||||||
|
#ansonsten sich mit dem in yp.conf genannten nis server verbinden.
|
||||||
|
#
|
||||||
|
#Aufrufparameter:
|
||||||
|
#
|
||||||
|
#Letzte Änderung von: $Author$
|
||||||
|
#Datum der letzten Änderung: $Date$
|
||||||
|
#Version der Datei: $Revision$
|
||||||
|
#
|
||||||
|
|
||||||
|
if [ -f /etc/yp.conf ]; then
|
||||||
|
exec ypbind
|
||||||
|
else
|
||||||
|
exec ypbind -broadcast
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user