Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Sep 2016 18:27:11 +0200
From:      Stanislaw Halik <sthalik@tehran.lain.pl>
To:        "ports@FreeBSD.org" <ports@freebsd.org>
Cc:        "James A. McGuire" <j.a.mcguire@gmail.com>
Subject:   Re: FreeBSD Port: noip-2.1.9_3
Message-ID:  <b6ac6c17-a4a8-8e16-e7ad-23721a590fab@misaki.pl>
In-Reply-To: <7fc09a4d-f67e-0674-9f68-0a57e174b184@misaki.pl>
References:  <CADPthFdUyAGUMpPpAJ16g8W_mR_RkYsWF4BezjkWC2k5aW0j1g@mail.gmail.com> <4bb353eb-67e0-cd72-9dba-83fdca2ae4d8@gmx.de> <b70d6184-5ffe-76b7-8327-c1b57ea03d58@misaki.pl> <990cd69e-dc34-8a00-b4eb-d07fcebbff95@gmx.de> <7fc09a4d-f67e-0674-9f68-0a57e174b184@misaki.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <ohauer@gmx.de> for noticing that builtin
> functionality.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b6ac6c17-a4a8-8e16-e7ad-23721a590fab>