Subject: Re: CVS commit: sharesrc
To: None <thorpej@zembu.com>
From: Johan Danielsson <joda@pdc.kth.se>
List: source-changes
Date: 08/11/2000 11:59:17
Jason R Thorpe <thorpej@zembu.com> writes:

> Hm, the old krb4 kpasswdd was definitely started from inetd.
> 
> I'll take a look.

We should probably start kadmind from rc.d too.

/Johan

Index: inetd.conf
===================================================================
RCS file: /cvsroot/basesrc/etc/inetd.conf,v
retrieving revision 1.38
diff -w -u -r1.38 inetd.conf
--- inetd.conf	2000/08/06 20:35:13	1.38
+++ inetd.conf	2000/08/11 09:59:50
@@ -45,9 +45,6 @@
 #
 #	Services run ONLY on the Kerberos server
 #
-#kerberos-adm	stream	tcp	nowait	root	/usr/libexec/kadmind	kadmind
-#kpasswd	stream	tcp	nowait	root	/usr/libexec/kpasswdd	kpasswdd
-#
 # The hprop service is run on slave KDCs to receive the database from
 # the master KDC.
 #hprop		stream	tcp	nowait	root	/usr/libexec/hpropd	hpropd
Index: rc.d/kdc
===================================================================
RCS file: /cvsroot/basesrc/etc/rc.d/kdc,v
retrieving revision 1.1
diff -w -u -r1.1 kdc
--- kdc	2000/08/06 21:32:56	1.1
+++ kdc	2000/08/11 09:59:50
@@ -15,3 +15,21 @@
 
 load_rc_config $name
 run_rc_command "$1"
+
+
+name="kadmind"
+command="/usr/sbin/${name}"
+pidfile="/var/run/${name}.pid"
+required_files="/etc/krb5.conf"
+
+load_rc_config $name
+run_rc_command "$1"
+
+
+name="kpasswdd"
+command="/usr/sbin/${name}"
+pidfile="/var/run/${name}.pid"
+required_files="/etc/krb5.conf"
+
+load_rc_config $name
+run_rc_command "$1"