NetBSD Problem Report #24489

Received: (qmail 9117 invoked by uid 605); 19 Feb 2004 11:35:23 -0000
Message-Id: <20040219113508.091C95702@bart.stasoft.ch>
Date: Thu, 19 Feb 2004 12:35:08 +0100 (CET)
From: jukka-netbsd@2004.salmi.ch
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: jukka-netbsd@2004.salmi.ch
To: gnats-bugs@gnats.netbsd.org
Subject: security/heimdal: kdc doesn't go to background when started
X-Send-Pr-Version: 3.95

>Number:         24489
>Category:       pkg
>Synopsis:       kdc doesn't go to background when started
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 19 11:36:00 +0000 2004
>Closed-Date:    Mon Feb 23 12:36:09 +0000 2004
>Last-Modified:  Mon Feb 23 12:37:01 +0000 2004
>Originator:     Jukka Salmi
>Release:        NetBSD 1.6.2
>Organization:
>Environment:
System: NetBSD bart.stasoft.ch 1.6.2 NetBSD 1.6.2 (BART) #0: Tue Feb 10 10:29:57 CET 2004 root@bart.stasoft.ch:/usr/src/sys/arch/i386/compile/BART i386
Architecture: i386
Machine: i386
>Description:
After building and installing security/heimdal from current pkgsrc on a
stable NetBSD system I noticed kdc doesn't go to background when started.
>How-To-Repeat:
(install security/heimdal)
$ cp /usr/pkg/etc/rc.d/kdc /etc/rc.d
$ /etc/rc.d/kdc start
(should go to background but doesn't)
>Fix:
>Release-Note:
>Audit-Trail:

From: Jukka Salmi <jukka-netbsd@2004.salmi.ch>
To: gnats-bugs@NetBSD.org
Cc:  
Subject: Re: pkg/24489: security/heimdal: kdc doesn't go to background when started
Date: Thu, 19 Feb 2004 12:52:53 +0100

 ... of course a possible solution would be setting start_cmd="${command} &"
 in /etc/rc.conf, but I don't think that would be correct...

 -- 
 bashian roulette:
 $ ((RANDOM%6)) || rm -rf ~

From: joda@pdc.kth.se (Johan Danielsson)
To: jukka-netbsd@2004.salmi.ch
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/24489: security/heimdal: kdc doesn't go to background when
 started
Date: Thu, 19 Feb 2004 16:12:29 +0100

 jukka-netbsd@2004.salmi.ch writes:

 > After building and installing security/heimdal from current pkgsrc
 > on a stable NetBSD system I noticed kdc doesn't go to background
 > when started.

 I suppose this is because of a difference in the default value of the
 --detach option to kdc. NetBSD has it on by default, while stock
 Heimdal doesn't. Possible solutions include

 1) make Heimdal always detach
 2) add --detach to the kdc rc script.

 /Johan

From: Love <lha@stacken.kth.se>
To: jukka-netbsd@2004.salmi.ch
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/24489: security/heimdal: kdc doesn't go to background when
 started
Date: Thu, 19 Feb 2004 15:31:12 +0100

 --=-=-=


 jukka-netbsd@2004.salmi.ch writes:

 >>Number:         24489
 >>Synopsis:       kdc doesn't go to background when started
 [..]
 >>How-To-Repeat:
 > (install security/heimdal)
 > $ cp /usr/pkg/etc/rc.d/kdc /etc/rc.d
 > $ /etc/rc.d/kdc start
 > (should go to background but doesn't)

 Its because heimdal defaults to no going to background, this was changed in
 netbsd base version. There is a defined that toggles the behavior.

 Passing --detach to either of them (pkgsrc version or base) does the right
 thing.

 Love


 --=-=-=
 Content-Type: application/pgp-signature

 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.3 (NetBSD)

 iQEVAwUAQDTIsnW+NPVfDpmCAQJ1VAgAvyKnzKGpDNT7BKVnU4yFsjOZ5N8Gr3cK
 ov7fDh9ZDtq3aU+vN5N7ySFcG6EetAs0W5vZAVGzgz0jtMYQT3gcsemyKt7C7mmC
 BVSbGt2GlK3A6FWoeeaBB3EY073eFA+aX6fv7sdAn04VRX46HuvmyKgrwaeY2aSM
 BjvYyE58J3s90dYCP08QGLkhMEJxP3d2kXSkMEfp3Fo/FnDghsbLLs7jwfEG3TeL
 I6/aaTNUkpZ5xGUlBp3LzfehGD8M04K0k9/qihHEhjWNu6GTGTSGK/4xsO1GYNEY
 Ed75c1s1il+8doir5anU47TWFQFpt1y4ZkMh8Fji3eLpp/iiGdGJ6w==
 =c8Q3
 -----END PGP SIGNATURE-----
 --=-=-=--

From: Jukka Salmi <jukka-netbsd@2004.salmi.ch>
To: gnats-bugs@NetBSD.org
Cc:  
Subject: Re: pkg/24489: security/heimdal: kdc doesn't go to background when started
Date: Thu, 19 Feb 2004 23:07:40 +0100

 Hello,

 thanks to all those who replied. Maybe adding the --detach option
 to the default rc.d script would be a good idea. Howver, this PR
 can be closed.

 Greetings, Jukka

 -- 
 bashian roulette:
 $ ((RANDOM%6)) || rm -rf ~

From: Thomas Klausner <wiz@NetBSD.org>
To: Jukka Salmi <jukka-netbsd@2004.salmi.ch>
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/24489: security/heimdal: kdc doesn't go to background when started
Date: Fri, 20 Feb 2004 13:07:28 +0100

 --rwEMma7ioTxnRzrJ
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline

 On Thu, Feb 19, 2004 at 10:08:03PM -0000, Jukka Salmi wrote:
 >  thanks to all those who replied. Maybe adding the --detach option
 >  to the default rc.d script would be a good idea. Howver, this PR
 >  can be closed.

 Does the attached diff work? (Apply in security/heimdal and reinstall.)
  Thomas

 --rwEMma7ioTxnRzrJ
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="kdc.sh-diff"

 Index: files/kdc.sh
 ===================================================================
 RCS file: /cvsroot/pkgsrc/security/heimdal/files/kdc.sh,v
 retrieving revision 1.1
 diff -u -r1.1 kdc.sh
 --- files/kdc.sh	10 Jan 2004 21:59:29 -0000	1.1
 +++ files/kdc.sh	20 Feb 2004 12:07:14 -0000
 @@ -22,3 +22,10 @@
  	@ECHO@ -n " ${name}"
  	${command} ${kdc_flags}
  fi
 +
 +kdc_precmd()
 +{
 +	#       Change run_rc_commands()'s internal copy of $kdc_flags
 +	#
 +	rc_flags="--detach $rc_flags"
 +}

 --rwEMma7ioTxnRzrJ--

From: Jukka Salmi <jukka-netbsd@2004.salmi.ch>
To: Thomas Klausner <wiz@NetBSD.org>
Cc: gnats-bugs@NetBSD.org
Subject: Re: pkg/24489: security/heimdal: kdc doesn't go to background when started
Date: Fri, 20 Feb 2004 15:17:26 +0100

 Thomas Klausner wrote:
 > Does the attached diff work? (Apply in security/heimdal and reinstall.)

 No, but this one should:

 --- kdc.sh      Fri Feb 20 15:11:17 2004
 +++ kdc.sh.detach       Fri Feb 20 15:12:10 2004
 @@ -13,6 +13,7 @@
  name="kdc"
  rcvar=$name
  command="@PREFIX@/libexec/${name}"
 +command_args="--detach"
  required_files="@PKG_SYSCONFDIR@/krb5.conf"

  if [ -f /etc/rc.subr ]; then


 Greetings, Jukka

 -- 
 bashian roulette:
 $ ((RANDOM%6)) || rm -rf ~

From: Jukka Salmi <jukka-netbsd@2004.salmi.ch>
To: gnats-bugs@NetBSD.org
Cc: Thomas Klausner <wiz@NetBSD.org>
Subject: Re: pkg/24489
Date: Mon, 23 Feb 2004 12:44:43 +0100

 --tsOsTdHNUZQcU9Ye
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline

 Jukka Salmi wrote:
 > Thomas Klausner wrote:
 > > Does the attached diff work? (Apply in security/heimdal and reinstall.)
 > 
 > No, but this one should:
 [...]

 Sorry, patch wasn't attached but "inline". Here it is again as an
 attachment.

 Jukka

 -- 
 bashian roulette:
 $ ((RANDOM%6)) || rm -rf ~

 --tsOsTdHNUZQcU9Ye
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="kdc.sh.detach.patch"

 --- kdc.sh	Fri Feb 20 15:11:17 2004
 +++ kdc.sh.detach	Fri Feb 20 15:12:10 2004
 @@ -13,6 +13,7 @@
  name="kdc"
  rcvar=$name
  command="@PREFIX@/libexec/${name}"
 +command_args="--detach"
  required_files="@PKG_SYSCONFDIR@/krb5.conf"

  if [ -f /etc/rc.subr ]; then

 --tsOsTdHNUZQcU9Ye--
State-Changed-From-To: open->closed 
State-Changed-By: wiz 
State-Changed-When: Mon Feb 23 12:35:57 UTC 2004 
State-Changed-Why:  
Applied the command_args patch you sent -- thanks! 

From: Thomas Klausner <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:  
Subject: pr/24489 CVS commit: pkgsrc/security/heimdal
Date: Mon, 23 Feb 2004 12:35:11 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Mon Feb 23 12:35:11 UTC 2004

 Modified Files:
 	pkgsrc/security/heimdal: Makefile
 	pkgsrc/security/heimdal/files: kdc.sh

 Log Message:
 Let the rc.d script start kdc detached, as is the default for
 the in-tree kdc.
 From Jukka Salmi in PR 24489, ok'd by lukem@.
 Bump PKGREVISION to 1.


 To generate a diff of this commit:
 cvs rdiff -r1.6 -r1.7 pkgsrc/security/heimdal/Makefile
 cvs rdiff -r1.1 -r1.2 pkgsrc/security/heimdal/files/kdc.sh

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.