From owner-freebsd-ports@freebsd.org Tue Sep 13 16:27:14 2016 Return-Path: Delivered-To: freebsd-ports@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 03F7DBD99B8 for ; Tue, 13 Sep 2016 16:27:14 +0000 (UTC) (envelope-from sthalik@misaki.pl) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id E577B1C7 for ; Tue, 13 Sep 2016 16:27:13 +0000 (UTC) (envelope-from sthalik@misaki.pl) Received: by mailman.ysv.freebsd.org (Postfix) id E1741BD99B7; Tue, 13 Sep 2016 16:27:13 +0000 (UTC) Delivered-To: ports@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 E1254BD99B6 for ; Tue, 13 Sep 2016 16:27:13 +0000 (UTC) (envelope-from sthalik@misaki.pl) Received: from nilaya.lain.pl (nilaya.lain.pl [37.187.165.146]) by mx1.freebsd.org (Postfix) with ESMTP id AEE581C5 for ; Tue, 13 Sep 2016 16:27:13 +0000 (UTC) (envelope-from sthalik@misaki.pl) Received: from [192.168.2.42] (c106-252.icpnet.pl [62.21.106.252]) by nilaya.lain.pl (Postfix) with ESMTPSA id ABE483FD6B; Tue, 13 Sep 2016 18:27:11 +0200 (CEST) Subject: Re: FreeBSD Port: noip-2.1.9_3 To: "ports@FreeBSD.org" References: <4bb353eb-67e0-cd72-9dba-83fdca2ae4d8@gmx.de> <990cd69e-dc34-8a00-b4eb-d07fcebbff95@gmx.de> <7fc09a4d-f67e-0674-9f68-0a57e174b184@misaki.pl> Cc: "James A. McGuire" From: Stanislaw Halik Message-ID: Date: Tue, 13 Sep 2016 18:27:11 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <7fc09a4d-f67e-0674-9f68-0a57e174b184@misaki.pl> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Sep 2016 16:27:14 -0000 On 2016-09-13 Tue 18:02, Stanislaw Halik wrote: > It's also necessary to > > #define FORCE_UPDATE 1 > > But keep in mind that the interval is accounted for only during process' > stay in memory. It doesn't work like "anacron" and the like. I'd like to > send a maintainer update with an interval of just a few days. If you add the two changes, also consider line 364: int Force_Update = FORCE_INTERVAL; Change this to int Force_Update = -1; Then the daemon will force an update whenever it's started (e.g. system start). sh > -#define FORCE_UPDATE 0 > +#define FORCE_UPDATE 1 > > -#define FORCE_INTERVAL (1440 * 30) // 30 days in minutes > +#define FORCE_INTERVAL (1440 * 7) // 7 days in minutes > > Kudos to olli hauer for noticing that builtin > functionality.