🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.current
Article #163

Re: Should we add jitter to cron(8) ?

#163
From: Sulev-Madis Silber
Date: Tue, 03 Nov 2026 12:16
65 lines
6897 bytes

On November 3, 2026 1:59:59 AM GMT+02:00, "Enji Cooper (yaneurabeya)" <yaneurabeya@gmail.com> wrote:
>
>> On Nov 2, 2026, at 10:58 AM, Sulev-Madis Silber <freebsd-current-freebsd-org111@ketas.si.pri.ee> wrote:
>> 
>> On November 2, 2026 8:28:09 PM GMT+02:00, "Enji Cooper (yaneurabeya)" <yaneurabeya@gmail.com> wrote:
>>> 
>>>> On Nov 2, 2026, at 9:10 AM, Jamie Landeg-Jones <jamie@catflap.org> wrote:
>>>> 
>>>> Peter Jeremy <peterj@FreeBSD.org> wrote:
>>>> 
>>>>> IMO, it would be useful to have a way of saying e.g. "run once an hour
>>>>> but I don't care when within the hour".
>>>> 
>>>> I assume that the time within the hour would be the same each hour? If so,
>>>> that would be useful.
>>>> 
>>>> But would than initial state random number be stored somewhere, or reset
>>>> each time cron starts?
>>> 
>>> <2 cents> (deflated)
>>> It would probably be better if the state was tracked at the system level instead of in the application itself.
>>> 
>>> As a bonus, employing jitter might improve overall system-level entropy, depending on how jobs are run and when, which could help cryptography some.
>>> </2 cents>
>>> 
>>> Thanks,
>>> -Enji
>> 
>> what if (embedded) system with read-only filesystem reboots?
>
>Wouldn’t that suffer the same issues as cron-saved entropy data?
>-Enji

side question: are ro systems more insecure or it still gets enough seed for csprng on nowadays hw? and are rw systems less secure in first boot? we no longer require user to write screen full of chars at boot. does it matter if we save it over boots? or it's still fine if live collected. i'm not familiar with this subject

but as for cron, yeah no idea what will happen then, will it run multiple times? how do you know if task has been ran if it's supposed to run some time inside hour

oh and then comes the cursed cron @reboot which is so useful to start stuff but won't run at reboot at all, rather every cron restart. granted, most of machines run cron from boot to halt in one go, but things happen. one could save it if you can, works even with tmpfs /var/run, but then what if it's bad


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID: <ABE6DA6B-4D68-4552-8C39-F0749463B0F7@ketas.si.pri.ee>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
References: <> <532BF44C-E128-4DF2-9CB5-08E124DD7A6B@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: Sulev-Madis Silber <freebsd-current-freebsd-org111@ketas.si.pri.ee>
Newsgroups: muc.lists.freebsd.current
Subject: Re: Should we add jitter to cron(8) ?
Date: Tue, 03 Nov 2026 14:16:31 +0200
Organization: Newsgate at muc.de e.V.
Sender: owner-freebsd-current@FreeBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <ABE6DA6B-4D68-4552-8C39-F0749463B0F7@ketas.si.pri.ee>
References: <> <532BF44C-E128-4DF2-9CB5-08E124DD7A6B@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain;
 charset=utf-8
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="73808"; mail-complaints-to="news-admin@muc.de"
User-Agent: K-9 Mail for Android
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1793708220; h=from:from:sender:sender:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:mime-version:mime-version:
	 content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references:list-id:list-help:
	 list-owner:list-unsubscribe:list-subscribe:list-post;
	bh=0TKnMrbEu2c3WR67ERjuySDLUWuAZt9AgxYraDs+PUQ=;
	b=K4JLtqATNujDIlrcFAxLeUZ3uMVwQz2WFAA/qbY+gklG8xWtIfla0nOpZwwHr9StExhPw+
	Fnm0hinfJseSDQ5cKsMPJ3SWQrFiF7LlVbnARGEiiOLc+lCimCXQQnJ0MOR3oGiHU/K5Yt
	krRgIk0rjeV5nv/CjUPY9ddv7kFxXnGq20210kOQsyhUpVy8hsP9L3tytqu4HHgskwFmiO
	qMQ+GntgOR1RfSvGhHurxqzYxtSiwrROYa0YnTpJ+XGTxAyVzXZ9Z3bfxvmYxQ2D9KLmLm
	S/fFrCQkuXOD0fICgSqTmS7EuXO6Nlv6CqwPRoAodSFI55D9voDnh25BFfesjg==
X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org
Authentication-Results: mx1.freebsd.org;
	dkim=pass header.d=ketas.si.pri.ee header.s=ketas-si-pri-ee-20240416002854-4096 header.b=LWluAR43;
	spf=pass (mx1.freebsd.org: domain of freebsd-current-freebsd-org111@ketas.si.pri.ee designates 2001:7d0:8437:13e8:21e:bff:fea2:d004 as permitted sender) smtp.mailfrom=freebsd-current-freebsd-org111@ketas.si.pri.ee;
	dmarc=pass (policy=reject) header.from=ketas.si.pri.ee
X-Clacks-Overhead: GNU Terry Pratchett
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ketas.si.pri.ee;
	s=ketas-si-pri-ee-20240416002854-4096; t=1793708192;
	bh=0TKnMrbEu2c3WR67ERjuySDLUWuAZt9AgxYraDs+PUQ=;
	h=Date:From:To:Subject:In-Reply-To:References;
	b=LWluAR434753kcirQPCNFsrvY7uhqgLF0PWlBRxcSYhfd0TwwqdMfjQUHsvioUakc
	 J2IDSeLLAthsGgyqR4fKEr2aNXQEtCEpq2y8VBFme1aP6aCA0bGRUGDz/LXvmOzbs7
	 xwum6YvywW6KdX7+F9tsqEq50K9eZJOWrFmCvHib/euLZwAbARMR09bV42cUpjxasv
	 4ITb9j6F6W6SZOAid+CpQXkRdY+nPYdb41HkJYWpAdAvde8aiOiHZsTLqJUkPLgeqj
	 3qqjxPYRxsHS4YJSUe9aK1ykPeDFexlols0UyKFtaPQJQHGqXBGxj1vMaSnMN9Nu32
	 lCEKio4trHcpN5QnwbOskhwa8p27vFTeFlezam22IMjzC/gloU4uyf7VRNIa1sYCj1
	 ltzhazV49hm5apHmrXgeSR+oM5GOJ6Vm0zg5H+aTGzlhdvk/bYqO2RkJ3CxhLqTg76
	 On3/9BY+QfiRf7n76dchZoJQPdpXPEU3KUDmldmooDx9ar62F90r1BI2nA2PB/ppDU
	 LVoWY5o8VIyJov4D3j/ASuuBH6w2Xben0AYuCaxzsEj0TlwSDVKZQjWqZC5cgEuvGa
	 gQ+MaPgrYC1lU6wBWz0/4jtV7+2PcsuyPLLN2xlVY+i0ph3VVBu6bGUwocdiS787M+
	 LChgJ0dief7NZGdSYRCDZZO8=
X-Passed-Through: http://ketas.si.pri.ee/
In-Reply-To: <532BF44C-E128-4DF2-9CB5-08E124DD7A6B@gmail.com>
Precedence: list
X-Rspamd-Queue-Id: 4jJncQ6X42z4r30
X-Spamd-Bar: +++
X-Spamd-Result: default: False [3.20 / 15.00];
	HFILTER_HOSTNAME_5(3.00)[d004-fea2-0bff-021e-13e8-8437-07d0-2001.dyn.estpak.ee];
	SUBJECT_ENDS_QUESTION(1.00)[];
	DMARC_POLICY_ALLOW(-0.50)[ketas.si.pri.ee,reject];
	R_DKIM_ALLOW(-0.20)[ketas.si.pri.ee:s=ketas-si-pri-ee-20240416002854-4096];
	R_SPF_ALLOW(-0.20)[+ip6:2001:7d0:8437:1300::/56];
	ONCE_RECEIVED(0.20)[];
	MIME_GOOD(-0.10)[text/plain];
	RCVD_VIA_SMTP_AUTH(0.00)[];
	RCVD_COUNT_ONE(0.00)[1];
	ASN(0.00)[asn:3249, ipnet:2001:7d0::/32, country:EE];
	MIME_TRACE(0.00)[0:+];
	ARC_NA(0.00)[];
	MLMMJ_DEST(0.00)[freebsd-current@FreeBSD.org];
	RCPT_COUNT_ONE(0.00)[1];
	FROM_EQ_ENVFROM(0.00)[];
	FROM_HAS_DN(0.00)[];
	MID_RHS_MATCH_FROM(0.00)[];
	RCVD_TLS_ALL(0.00)[];
	TO_MATCH_ENVRCPT_ALL(0.00)[];
	TO_DN_NONE(0.00)[];
	PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org];
	DKIM_TRACE(0.00)[ketas.si.pri.ee:+]
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes