Compare commits
No commits in common. "v961" and "v963" have entirely different histories.
24
etc/init/ypclient.conf
Normal file
24
etc/init/ypclient.conf
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
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
|
||||||
|
/sbin/CheckPid /var/run/ypbind.pid
|
||||||
|
end script
|
||||||
|
|
||||||
|
expect daemon
|
||||||
|
exec /usr/sbin/start_ypbind
|
|
@ -29,6 +29,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
WDIR=`pwd`
|
WDIR=`pwd`
|
||||||
|
if [ -d /var/install/sysvinit* ]; then
|
||||||
mkdir -p etc/sysconfig/nis
|
mkdir -p etc/sysconfig/nis
|
||||||
cd etc/init.d
|
cd etc/init.d
|
||||||
chmod 755 ypclient
|
chmod 755 ypclient
|
||||||
|
@ -43,4 +44,5 @@ for i in 2 3 4 5; do
|
||||||
ln -s ../ypclient S13ypclient
|
ln -s ../ypclient S13ypclient
|
||||||
cd ..
|
cd ..
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
cd $WDIR
|
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