V961 Tree Umbau
git-svn-id: svn://svn.compuextreme.de/Viitor/V961/Viitor_rpc@4314 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
commit
148bf9626c
89
etc/init.d/rpc
Normal file
89
etc/init.d/rpc
Normal file
@ -0,0 +1,89 @@
|
||||
#!/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 2003/04/19 08:14:47 kueller
|
||||
#restart option hinzugefügt
|
||||
#
|
||||
#Revision 1.4 2002/10/15 17:45:12 kueller
|
||||
#Variablennamen in if Abfragen muessen in Anfuehrungszeichen stehen
|
||||
#
|
||||
#Revision 1.3 2002/02/07 11:34:28 hkueller
|
||||
#Vor dem Start von rpc.kstatd wird überprüft ob dieser installiert ist
|
||||
#
|
||||
#Revision 1.2 2002/02/07 11:28:23 hkueller
|
||||
#nfs Client site eingefügt (kstatd - status check der nfs verbindungen -
|
||||
#vor allem über einen reboot des servers hinweg)
|
||||
#
|
||||
#Revision 1.1.1.1 2001/09/22 23:48:56 kueller
|
||||
#Neustart wg. Datenverlust
|
||||
#
|
||||
#Revision 1.3 2001/08/13 15:38:40 cvs
|
||||
#
|
||||
#Funktionalität um nfs Resources der /etc/fstab hinzugefügt - Dürfen erst
|
||||
#gemountet werden, wenn rpc gestartet ist
|
||||
#
|
||||
#Revision 1.2 2001/08/09 12:00:50 kueller
|
||||
#cvs header hinzugefügt
|
||||
#
|
||||
#
|
||||
|
||||
|
||||
source /etc/init.d/functions
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "starting portmapper (rpc)"
|
||||
/usr/sbin/portmap
|
||||
evaluate_retval
|
||||
if [ -f /usr/sbin/rpc.kstatd ]; then
|
||||
echo -n "Initializing nfs Client"
|
||||
loadproc /usr/sbin/rpc.kstatd
|
||||
fi
|
||||
for i in `sed -e "/^#/d" /etc/fstab|awk '{print $2}'`; do
|
||||
MOUNTPOINT=$i
|
||||
FILESYSTEM=`awk '{if( $2 == "'$MOUNTPOINT'") print $3}' /etc/fstab`
|
||||
if [ "$FILESYSTEM" == "nfs" ]; then
|
||||
echo -n "Mounting nfs $MOUNTPOINT"
|
||||
mount $MOUNTPOINT
|
||||
evaluate_retval
|
||||
fi
|
||||
done
|
||||
;;
|
||||
stop)
|
||||
for i in `sed -e "/^#/d" /etc/fstab|awk '{print $2}'`; do
|
||||
MOUNTPOINT=$i
|
||||
FILESYSTEM=`awk '{if ( $2 == "'$MOUNTPOINT'") print $3}' /etc/fstab`
|
||||
if [ "$FILESYSTEM" == "nfs" ]; then
|
||||
echo -n "umounting nfs $MOUNTPOINT"
|
||||
umount $MOUNTPOINT
|
||||
evaluate_retval
|
||||
fi
|
||||
done
|
||||
if [ -f /usr/sbin/rpc.kstatd ]; then
|
||||
echo -n "Stopping nfs Client"
|
||||
killproc /usr/sbin/rpc.kstatd
|
||||
fi
|
||||
echo -n "shutting down portmapper (rpc)"
|
||||
pkill portmap
|
||||
evaluate_retval
|
||||
;;
|
||||
restart)
|
||||
$0 stop
|
||||
sleep 1
|
||||
$0 start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0: {start|stop|restart}"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
#end /etc/inet.d/network
|
28
init/genpkg
Normal file
28
init/genpkg
Normal file
@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
#genpkg für rpc
|
||||
#(c) Rainmaker MultiMedia OHG
|
||||
#
|
||||
#$Author$
|
||||
#$Date$
|
||||
#$Revision$
|
||||
#
|
||||
#$Log$
|
||||
#Revision 1.1 2001/09/22 23:48:56 kueller
|
||||
#Initial revision
|
||||
#
|
||||
#
|
||||
|
||||
WDIR=`pwd`
|
||||
cd etc/init.d
|
||||
mkdir rc{0,1,2,3,4,5,6}.d
|
||||
for i in 0 1 6; do
|
||||
cd rc$i.d
|
||||
ln -s ../rpc K87rpc
|
||||
cd ..
|
||||
done
|
||||
for i in 2 3 4 5; do
|
||||
cd rc$i.d
|
||||
ln -s ../rpc S11rpc
|
||||
cd ..
|
||||
done
|
||||
cd $WDIR
|
45
tmp/postinstall
Normal file
45
tmp/postinstall
Normal file
@ -0,0 +1,45 @@
|
||||
#!/bin/bash
|
||||
#Framework, welches ein komplettes Linux System aus den Sourcen erstellt
|
||||
#dieses Framework wird im CVS Repository
|
||||
#:pserver:cvs.rainmaker-mm.de/RMM/cvs zur Verfügung gestellt
|
||||
#
|
||||
#Lage dieser Datei im Archiv: $Source$
|
||||
#
|
||||
#(c) Rainmaker MultiMedia OHG
|
||||
#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:
|
||||
#postinstallscript für rpc portmapper. Erzeugt einen eintrag für
|
||||
#inetd in /etc/inittab. Ausserdem wird der rpc dienst gestartet.
|
||||
#
|
||||
#Aufrufparameter:
|
||||
#keine
|
||||
#
|
||||
#Letzte Änderung von: $Author$
|
||||
#Datum der letzten Änderung: $Date$
|
||||
#Version der Datei: $Revision$
|
||||
#
|
||||
#$Log$
|
||||
#Revision 1.4 2006/06/20 10:09:00 kueller
|
||||
#inetd wird durch xinetd ersetzt. damit wird die einbindung von inetd in inittab
|
||||
#unnoetig
|
||||
#
|
||||
#Revision 1.3 2002/10/09 08:23:38 kueller
|
||||
#Anpassungen an neues chroot verhalten von installpkg. Ausserdem einsatz
|
||||
#des Standart GPL Monsum Projekt Headers
|
||||
#
|
||||
#
|
||||
|
||||
/etc/init.d/rpc start
|
Loading…
Reference in New Issue
Block a user