From owner-freebsd-stable@freebsd.org Wed Aug 30 13:07:53 2017 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F253EE01A76; Wed, 30 Aug 2017 13:07:53 +0000 (UTC) (envelope-from peixotocassiano@gmail.com) Received: from mail-qk0-x22b.google.com (mail-qk0-x22b.google.com [IPv6:2607:f8b0:400d:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A91446C6BD; Wed, 30 Aug 2017 13:07:53 +0000 (UTC) (envelope-from peixotocassiano@gmail.com) Received: by mail-qk0-x22b.google.com with SMTP id a77so27500339qkb.1; Wed, 30 Aug 2017 06:07:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=3pzK1xcTM9zB0Bapo1Ar8wmDHGqDnzxrw+BsxRMVbAQ=; b=FjBqvLbdlYO7p/vSHjuY4kU9P76IM2sXiSPQNiZxJpWlJ/uYwxDD0/xqvXwQs/+gyw eXHx9YNEr/YjmRldFeSjgm0O9sh5tzsNbxDDbnKmj6qtb4WJ3nvr9+fIR/GmqDdOp4dQ ZdEfednHGsmazgpIEyuTvtJDhndUweK/gIeqf2TiI57OOGKEO0OwY5fFY5zsBBetmbGE HDqeb/alBUjLMFMzRhh0pKngyGQ6AyW4wcMMg05aewVYjr4tY/rTNdsJlfixk0tyjr3Y s5mECt3aEDdMVDlDApZOlHVTvSPK4qxDLpgUnCW9G1njNxBzckq268F/lXnCmts8qn1t U+/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=3pzK1xcTM9zB0Bapo1Ar8wmDHGqDnzxrw+BsxRMVbAQ=; b=odi8LNO04StnZI7M1zeeJlxroeyD7/yMEN2tiTV4Y2bPty8c6rhisFUuw6iAHng9lC TuKt1bLZ+QzvU5cwLUJmAX+1UJtwYRSTnblYXkb8NllFW7tBl7XBzyY/1SnsC8wcVUhR hhwVB+7J5nL+QftTxmPQ1H9pRdWRIVsmeY9uu3iuioMMgFnbB7iYquWfTqImVWHRSoLb 9PPD3ypaRUbV4MiaFm4AVw3QeqJimjQs2j3HvlkpcpIYHhbHJeuQa2kZbZ4VsQDBmMN4 xP4I5Hzyk06kwgIBbllg5ft9c6Da1kMof3q9K2itzzYItudK/BVYHTROMLN9mUrQWGWo iZqg== X-Gm-Message-State: AHYfb5ipfKcqcodx5r6ZMymscXRUxMGRSsuZB1/FGYrpULGGxTzC8mFe 62nfyzo7ZNGNjhvajHpCDfXIwSuTvImfDac= X-Received: by 10.55.97.76 with SMTP id v73mr1546612qkb.90.1504098472310; Wed, 30 Aug 2017 06:07:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.237.38.129 with HTTP; Wed, 30 Aug 2017 06:07:51 -0700 (PDT) In-Reply-To: <20170830125950.mcp34sddcp6c757t@ivaldir.net> References: <4c16c960-3b4a-75ab-41ed-51c8109b940a@FreeBSD.org> <20170830124855.ph5cca5pwjd2pphf@ivaldir.net> <20170830125950.mcp34sddcp6c757t@ivaldir.net> From: Cassiano Peixoto Date: Wed, 30 Aug 2017 10:07:51 -0300 Message-ID: Subject: Re: pkg issue after FreeBSD 11 upgrade To: Baptiste Daroussin Cc: Matthew Seaman , freebsd-stable@freebsd.org, "freebsd-ports@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Aug 2017 13:07:54 -0000 Ok I know about HANDLE_RC_SCRIPTS, it's a good approach. But how to deal with when I need to restart a service without upgrading? Reaper functionnality is a trouble for many administrators who made meta ports to manage their servers. I really think it could be a option to be enabled/disabled. Can you see this possibility? Thanks. On Wed, Aug 30, 2017 at 9:59 AM, Baptiste Daroussin wrote: > On Wed, Aug 30, 2017 at 09:55:22AM -0300, Cassiano Peixoto wrote: > > Hi Baptiste, > > > > Why it used to work on FreeBSD 10? It stopped worked on FreeBSD 11 only. > > It only worked on FreeBSD 10 prior to 10.2, the reaper functionnality in > freebsd > kernel appeared in 10.2 > > > > Cron is just an example, I manage more than 50 FreeBSD servers, and I've > > been using ports for years to update some configs and restart the service > > on all of them. Many times I need to change nginx config, ldap, etc. I > just > > need to restart the service. > > HANDLE_RC_SCRIPTS=true in your pkg.conf and pkg will automatically restart > anything rc script provide once the package containing it is upgrading. > > This is off by default because in many cases it is dangerous (database > upgrades, > dovecot like things upgrade etc). But if you know what you are doing it > does the > job. > > Best regards, > Bapt >