Vorbereitung fuer upstart
git-svn-id: svn://svn.compuextreme.de/Viitor/V962/Viitor_ypserv@5568 504e572c-2e33-0410-9681-be2bf7408885
This commit is contained in:
parent
acb408b5d3
commit
bbf45ff76d
12
etc/init/yppasswdd.conf
Normal file
12
etc/init/yppasswdd.conf
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
description "If configured, startup rpc.ypxfrd (slave yp server) prozess"
|
||||||
|
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
||||||
|
version 1.0
|
||||||
|
emits none special
|
||||||
|
|
||||||
|
start on yppasswd
|
||||||
|
stop on stopping ypserv
|
||||||
|
|
||||||
|
console none
|
||||||
|
|
||||||
|
expect daemon
|
||||||
|
exec /usr/sbin/rpc.yppasswdd -D $PASSPATH
|
24
etc/init/ypserv.conf
Normal file
24
etc/init/ypserv.conf
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
description "If configured, startup ypserver 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 [ -f /etc/sysconfig/nis/defaultdomain ]; then
|
||||||
|
domainname `cat /etc/sysconfig/nis/defaultdomain`
|
||||||
|
else
|
||||||
|
exit 10
|
||||||
|
fi
|
||||||
|
end script
|
||||||
|
|
||||||
|
expect daemon
|
||||||
|
exec /usr/sbin/ypserv
|
||||||
|
|
||||||
|
post-start script
|
||||||
|
initctl emit yppasswd PASSPATH=/etc/sysconfig/nis/`domainname`
|
||||||
|
end script
|
12
etc/init/ypxfrd.conf
Normal file
12
etc/init/ypxfrd.conf
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
description "If configured, startup rpc.ypxfrd (slave yp server) prozess"
|
||||||
|
author "Harald Kueller <harald.kueller@compuextreme.de>"
|
||||||
|
version 1.0
|
||||||
|
emits none special
|
||||||
|
|
||||||
|
start on started ypserv
|
||||||
|
stop on stopping ypserv
|
||||||
|
|
||||||
|
console none
|
||||||
|
|
||||||
|
expect daemon
|
||||||
|
exec /usr/sbin/rpc.ypxfrd
|
@ -19,6 +19,7 @@
|
|||||||
#
|
#
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if [ -d /var/install/sysvinit* ]; then
|
||||||
WDIR=`pwd`
|
WDIR=`pwd`
|
||||||
mkdir etc/init.d/rc{0,1,2,3,4,5,6}.d
|
mkdir etc/init.d/rc{0,1,2,3,4,5,6}.d
|
||||||
cd etc/init.d
|
cd etc/init.d
|
||||||
@ -34,3 +35,4 @@ for i in 3 4 5; do
|
|||||||
cd ..
|
cd ..
|
||||||
done
|
done
|
||||||
cd $WDIR
|
cd $WDIR
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user