TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

yp, chkconfig and Redhat broken?



Is there a bug in ckconfig?

I am trying to add yp services to the init scripts and doing a
/sbin/chkconfig --add ypbind does nothing.

Here is my system before the --add ypbind

# /sbin/chkconfig --list | grep yp
ypbind 0:off 1:off 2:off 3:off 4:off 5:off 6:off
yppasswd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
ypserv 0:off 1:off 2:off 3:off 4:off 5:off 6:off

# find /etc/rc.d/ -name "*ypbind*"
/etc/rc.d/init.d/ypbind

After the --add

# /sbin/chkconfig --add ypbind
[root@ninja init.d]# /sbin/chkconfig --list | grep yp
ypbind 0:off 1:off 2:off 3:off 4:off 5:off 6:off
yppasswd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
ypserv 0:off 1:off 2:off 3:off 4:off 5:off 6:off

Notice ypbind is still "off" in each run level. But if I do this find
again.

# find /etc/rc.d/ -name "*ypbind*"
/etc/rc.d/init.d/ypbind
/etc/rc.d/rc0.d/K30ypbind
/etc/rc.d/rc1.d/K30ypbind
/etc/rc.d/rc2.d/K30ypbind
/etc/rc.d/rc3.d/K30ypbind
/etc/rc.d/rc4.d/K30ypbind
/etc/rc.d/rc5.d/K30ypbind
/etc/rc.d/rc6.d/K30ypbind

chkconfig addes the Kill scripts, but not the Start scripts. Looking
at the ypbind script.

# head ypbind 
#!/bin/sh
#
# ypbind:       Starts the upbind Daemon
#
# Version:      @(#) /etc/rc.d/init.d/ypbind.init 1.0
#
# chkconfig: - 70 30
# description: This is a daemon which runs on NIS/YP clients and binds
# them \
#              to a NIS domain. It must be running for systems based
#              on glibc \
#              to work as NIS clients, but it should not be enabled on
#              systems \

It looks like things should work just fine. Any ideas?



-- 
Bob Tanner <tanner@real-time.com>       | Phone : (612)943-8700
http://www.real-time.com                | Fax   : (612)943-8500
Key fingerprint =  6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9