From owner-freebsd-questions@FreeBSD.ORG Sun Jul 26 10:59:08 2009 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 A7D0D106566B for ; Sun, 26 Jul 2009 10:59:08 +0000 (UTC) (envelope-from utisoft@googlemail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.24]) by mx1.freebsd.org (Postfix) with ESMTP id 39FE48FC17 for ; Sun, 26 Jul 2009 10:59:07 +0000 (UTC) (envelope-from utisoft@googlemail.com) Received: by ey-out-2122.google.com with SMTP id 9so554427eyd.7 for ; Sun, 26 Jul 2009 03:59:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:reply-to:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=JVIBjKWeg88wrpAK63jsvMM4FL2f3nU3gkg3ZBlm5Z0=; b=xZaFhyUqasEDvCky4ILhzn7iu7X4w94MSj6yAEpz0SgRPA6ZhsiZfuTsM9PayKFRY7 DLRBhQwKh7Qo1M95bHsVaURKIVKOnpaiWpM1Xdyhjot+WlkQNhfogfO5dAsVfYeX5Qdp TacYvwbcIMTo503kaxro7c8zCW/FQc9Z3KOcw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; b=NKXcygt+8XRBoF5DspW8LM3aujW/LL1+auzOBO8LLAR5JHB+R/kja732NNN1n373RV 8ZiG3cCuWL99lZRro6D3ueDvypLU2McQlfc5E0cqUzLwcY1gauHRGuhXkIvcOYORpR3+ nkN+WXFQspOOAE+nMpzgQ8p9hFZbLcCUTSMpA= MIME-Version: 1.0 Received: by 10.216.88.200 with SMTP id a50mr432049wef.77.1248605947129; Sun, 26 Jul 2009 03:59:07 -0700 (PDT) In-Reply-To: <200907250916.22355.mel.flynn+fbsd.questions@mailing.thruhere.net> References: <4A6A3C49.4090403@glemsk.net> <200907250916.22355.mel.flynn+fbsd.questions@mailing.thruhere.net> From: Chris Rees Date: Sun, 26 Jul 2009 11:58:47 +0100 Message-ID: To: Mel Flynn Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Restarting daemons after portupgrade/portmanager X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: utisoft@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jul 2009 10:59:08 -0000 2009/7/25 Mel Flynn : > On Friday 24 July 2009 14:57:13 Axel wrote: > >> So far, so good. But what about the other daemons that still seem to run >> after upgrade (Apache, Courier IMAP etc)? Are the new version running >> fine after the upgrade, or should I set AFTERINSTALL to do a restart of >> these daemons, to make sure they run the upgraded version? > > I don't know about Courier, but Apache is generally not affected by on-disk > versions of libraries. The CGI programs however, are, since they're started up > and shutdown with each request (or in the case of FCGI in X requests) - the > Apache workers are spawned from the root process and use that process image. > > So there is no definite need to shut down Apache and disrupt service. If a > running webserver is important to you, I also would not do this automatically. > For example, jpeg could be upgraded before Apache and a module for Apache > needing it, yet this module is depending on Apache and therefore not > recompiled yet. As a result, this module tries to load a non-existing library > and Apache restart will fail. > -- > Mel If you want to restart Apache without killing existing sessions, just use amnesiac# apachectl graceful However, watch out for Mel's point about missing libraries.... But I would still do that; downtime after forcing a restart is better than downtime at some random point when it discovers the missing libraries.... Chris -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in a mailing list?