Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 May 2023 10:03:42 +0000
From:      =?utf-8?Q?Mina_Gali=C4=87?= <freebsd@igalic.co>
To:        dev-commits-ports-main@freebsd.org
Subject:   Re: git: 2aedfff8a362 - main - sysutils/tuptime: Fix cron file
Message-ID:  <2667f8a8-af1e-c50e-2023-6c95e6b5ea5c@igalic.co>

next in thread | raw e-mail | index | archive | help

On 08/05/2023 08:36, Fernando Apestegu=C3=ADa wrote:
> The branch main has been updated by fernape:
>
> URL: https://cgit.FreeBSD.org/ports/commit/?id=3D2aedfff8a362c432d6f6ee89=
587bd8f5470f9687
>
> commit 2aedfff8a362c432d6f6ee89587bd8f5470f9687
> Author:     Jeremy Johnston <jeremy@smart-serv.net>
> AuthorDate: 2023-05-08 06:28:09 +0000
> Commit:     Fernando Apestegu=C3=ADa <fernape@FreeBSD.org>
> CommitDate: 2023-05-08 07:32:03 +0000
>
>      sysutils/tuptime: Fix cron file
>     =20
>      Fix cron file to use -q file to grep aswell as switch to checking se=
rvice
>      tuptime rcvar as this includes other locations such as
>      /usr/local/etc/rc.conf.d/tuptime

After the changes made during the discussion in the PR, this commit=20
message is now a bit confusing.

-q was there before.

We're not (manually) checking rcvar; we're "simply" asking service to do=20
this task for us.

>     =20
>      PR:             271243
>      Reported by:    jeremy@smart-serv.net (maintainer)
> ---
>   sysutils/tuptime/Makefile   | 2 +-
>   sysutils/tuptime/files/cron | 2 +-
>   2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/sysutils/tuptime/Makefile b/sysutils/tuptime/Makefile
> index 1e9d1e52a6ef..914069786286 100644
> --- a/sysutils/tuptime/Makefile
> +++ b/sysutils/tuptime/Makefile
> @@ -1,6 +1,6 @@
>   PORTNAME=3D=09tuptime
>   DISTVERSION=3D=095.2.2
> -PORTREVISION=3D=091
> +PORTREVISION=3D=092
>   CATEGORIES=3D=09sysutils
>  =20
>   MAINTAINER=3D=09jeremy@smart-serv.net
> diff --git a/sysutils/tuptime/files/cron b/sysutils/tuptime/files/cron
> index 833de2151cab..d8eabe5dd6ff 100644
> --- a/sysutils/tuptime/files/cron
> +++ b/sysutils/tuptime/files/cron
> @@ -1 +1 @@
> -*/5=09*=09*=09*=09*=09_tuptime=09(grep '^tuptime_enable=3D"YES"' /etc/rc=
.conf) && /usr/local/bin/tuptime -q
> +*/5=09*=09*=09*=09*=09_tuptime=09(/usr/sbin/service tuptime enabled) && =
/usr/local/bin/tuptime -q


Kind regards,


Mina





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2667f8a8-af1e-c50e-2023-6c95e6b5ea5c>