Viitor_ypbind/etc/init.d/ypclient
kueller 0071f88dd9 Neue Version V963
git-svn-id: svn://svn.compuextreme.de/Viitor/V963/Viitor_ypbind@5933 504e572c-2e33-0410-9681-be2bf7408885
2011-01-03 10:48:06 +00:00

73 lines
1.7 KiB
Bash

#!/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