22 lines
393 B
Plaintext
22 lines
393 B
Plaintext
|
# rc - runlevel compatibility
|
||
|
#
|
||
|
# This task guesses what the "default runlevel" should be and starts the
|
||
|
# appropriate script.
|
||
|
|
||
|
start on started rpc
|
||
|
stop on stopping rpc
|
||
|
|
||
|
console output
|
||
|
|
||
|
pre-start script
|
||
|
if [ -f /etc/sysconfig/nis/defaultdomain ]; then
|
||
|
domainname `cat /etc/sysconfig/nis/defaultdomain`
|
||
|
/usr/sbin/ypbind
|
||
|
sleep 2
|
||
|
fi
|
||
|
end script
|
||
|
|
||
|
post-stop script
|
||
|
pkill ypbind
|
||
|
end script
|