ypbind jetzt mit support fuer upstart
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_ypbind@5529 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
parent
236e70517e
commit
eb6f39bea8
19
etc/init/ypclient.conf
Normal file
19
etc/init/ypclient.conf
Normal file
@ -0,0 +1,19 @@
|
||||
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
|
||||
|
||||
|
||||
#exect daemon
|
||||
#pid binary /usr/sbin/ypbind
|
||||
console none
|
||||
script
|
||||
source /etc/init/functions
|
||||
if [ -f /etc/sysconfig/nis/defaultdomain ]; then
|
||||
domainname `cat /etc/sysconfig/nis/defaultdomain`
|
||||
/usr/sbin/ypbind -debug
|
||||
fi
|
||||
end script
|
@ -28,6 +28,7 @@
|
||||
#
|
||||
#
|
||||
|
||||
if [ -d /var/install/sysvinit* ]; then
|
||||
WDIR=`pwd`
|
||||
mkdir -p etc/sysconfig/nis
|
||||
cd etc/init.d
|
||||
@ -43,4 +44,5 @@ for i in 2 3 4 5; do
|
||||
ln -s ../ypclient S13ypclient
|
||||
cd ..
|
||||
done
|
||||
fi
|
||||
cd $WDIR
|
||||
|
Loading…
Reference in New Issue
Block a user