From owner-freebsd-questions@FreeBSD.ORG Tue Aug 17 12:27:30 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BDCE11065694 for ; Tue, 17 Aug 2010 12:27:30 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 4CD5A8FC14 for ; Tue, 17 Aug 2010 12:27:29 +0000 (UTC) Received: by wyj26 with SMTP id 26so8717472wyj.13 for ; Tue, 17 Aug 2010 05:27:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=vTzyu/pz7W7yesOYu/wZ4GH9Ie5XsGZo3Ita7rF4l8U=; b=mSyE+bh8xIPWqdaHOm2/vg00rFoKlbSXMthmLibK3X6Yk3C+Xra7soLxdT1+OVMmTx 5RvY9eTM5LQn1HRNhvVUP9F09C5u0Vi6El1ffvh8ntQKvw9hYloctUIjqi6u85sYu281 uspbe5sbi2rfvi2GPpdEQnoQ/79pcthzMlz+A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=N/z8uiZCBscQcJrKFTIiiBYFa5irgb0PvDD5yIB4+WWfLKEbJkpZsJdTXMuS7C/FtV JFLXno6ebyDq2RcmSxGHkpg1ulVH5dBPXpDtC8yuqSQLrJv1ZLb52KIoMn+NTq7/rvfp r+1umdWC1BEW1A9df5pmzO/WBl72Nh879lV3o= Received: by 10.227.146.213 with SMTP id i21mr5798891wbv.99.1282048048902; Tue, 17 Aug 2010 05:27:28 -0700 (PDT) Received: from gumby.homeunix.com (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mx.google.com with ESMTPS id e8sm4026230wej.46.2010.08.17.05.27.25 (version=SSLv3 cipher=RC4-MD5); Tue, 17 Aug 2010 05:27:27 -0700 (PDT) Date: Tue, 17 Aug 2010 13:27:23 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20100817132723.737fe795@gumby.homeunix.com> In-Reply-To: <4C6A4593.8030405@beatsnet.com> References: <4C69D13F.9080404@dannysplace.net> <20100817032327.0349772b.freebsd@edvax.de> <84y6c6rnpp.fsf@shroyer.name> <4C6A4593.8030405@beatsnet.com> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Upgrading ports while processes are running. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Aug 2010 12:27:30 -0000 On Tue, 17 Aug 2010 10:17:23 +0200 Beat Siegenthaler wrote: > It never causes trouble. The only thing that if I use restart, rc says > the daemon is not running (but running fine) . > But after reading Your article it is now clear why. I don't think it should be. Most daemons write their pid (process ID) to a pid-file on startup. When you stop an rc script it reads the pid-file and checks to see that there is a process with that pid and which has the correct command line. If no match is found you get that warning. Reinstalling a port shouldn't affect the pid file.