From nobody@FreeBSD.org  Wed Jul 12 09:36:42 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E083C16A4DE
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 12 Jul 2006 09:36:42 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 55F7D43D58
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 12 Jul 2006 09:36:42 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k6C9afh9091788
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 12 Jul 2006 09:36:41 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k6C9afp4091787;
	Wed, 12 Jul 2006 09:36:41 GMT
	(envelope-from nobody)
Message-Id: <200607120936.k6C9afp4091787@www.freebsd.org>
Date: Wed, 12 Jul 2006 09:36:41 GMT
From: Heinrich Rebehn <rebehn@ant.uni-bremen.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: samba is stopped and not restarted after portupgrade
X-Send-Pr-Version: www-2.3

>Number:         100156
>Category:       ports
>Synopsis:       samba is stopped and not restarted after portupgrade
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jul 12 09:40:17 GMT 2006
>Closed-Date:    Wed Jul 12 20:30:29 GMT 2006
>Last-Modified:  Fri Jul 14 13:50:18 GMT 2006
>Originator:     Heinrich Rebehn
>Release:        FreeBSD 6.1-RC #5
>Organization:
University of Bremen
>Environment:
FreeBSD antsrv1.ant.uni-bremen.de 6.1-RC FreeBSD 6.1-RC #5: Thu Apr 27 10:41:37 CEST 2006     root@antsrv1.ant.uni-bremen.de:/usr/obj/usr/src/sys/ANTSRV1  amd64
>Description:
After 

# portupgrade samba 

samba is stopped and has to be manually restarted, which
makes it impossible do run portupgrade unattended.

>How-To-Repeat:

# portupgrade samba
# ps ax|grep mbd     # shows that samba is no longer running

>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: itetcu 
State-Changed-When: Wed Jul 12 20:30:26 UTC 2006 
State-Changed-Why:  
User error. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=100156 

From: Ion-Mihai "IOnut" Tetcu <itetcu@FreeBSD.org>
To: Heinrich Rebehn <rebehn@ant.uni-bremen.de>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: ports/100156: samba is stopped and not restarted after
 portupgrade
Date: Wed, 12 Jul 2006 23:30:11 +0300

 --Sig_g9Ht/s9lxHYa8=Zp2lT3kD0
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: quoted-printable
 
 Use AFTERINSTALL in pkgtools.conf to fix this.
 
 --=20
 IOnut - Un^d^dregistered ;) FreeBSD "user"
   "Intellectual Property" is   nowhere near as valuable   as "Intellect"
 
 BOFH excuse #87:
 Password is too complex to decrypt
 
 
 
 --Sig_g9Ht/s9lxHYa8=Zp2lT3kD0
 Content-Type: application/pgp-signature; name=signature.asc
 Content-Disposition: attachment; filename=signature.asc
 
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.4 (FreeBSD)
 
 iD8DBQFEtVvUBX6fi0k6KXsRAuqZAKCBTt2xzzthA7FvlTtW7UpVlsgx2gCeOAiw
 NCWrJJVMECqhyHIMX/TihP0=
 =jwu7
 -----END PGP SIGNATURE-----
 
 --Sig_g9Ht/s9lxHYa8=Zp2lT3kD0--

From: Heinrich Rebehn <rebehn@ant.uni-bremen.de>
To: bug-followup@FreeBSD.org,  rebehn@ant.uni-bremen.de
Cc:  
Subject: Re: ports/100156: samba is stopped and not restarted after portupgrade
Date: Fri, 14 Jul 2006 15:48:45 +0200

 Using AFTERINSTALL in pkgtools.conf is merely a workaround to cope with 
 the fact that "make reinstall" fails to restart the daemons.
 Also, this does not work with portmanager.
 
 IMHO, the port's Makefile is the central point where this should be 
 taken care of, and not pkgtools / portmanager or whatever frontend you 
 use to upgrade your ports.
 
 Sincerely,
 
 	Heinrich Rebehn
>Unformatted:
