From nobody Wed Aug 3 06:54:33 2022 X-Original-To: freebsd-arch@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4LyN0J46QYz4Xh50 for ; Wed, 3 Aug 2022 06:55:12 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from mailgate.Leidinger.net (bastille.leidinger.net [89.238.82.207]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature ECDSA (P-256) client-digest SHA256) (Client CN "mailgate.leidinger.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LyN0H3cwsz419g for ; Wed, 3 Aug 2022 06:55:11 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from outgoing.leidinger.net (p5b165562.dip0.t-ipconnect.de [91.22.85.98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256 client-signature ECDSA (P-256) client-digest SHA256) (Client CN "outgoing.leidinger.net", Issuer "R3" (verified OK)) by mailgate.Leidinger.net (Postfix) with ESMTPSA id 87EBBE4E for ; Wed, 3 Aug 2022 08:54:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leidinger.net; s=outgoing-alex; t=1659509699; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to; bh=U09T/JrbAvwDe34pY/b8Uq7/UGGbZ3QSVKIbWWXBGEM=; b=UB+6zGQwn5+GASzQ64kZSH0Fr95BW5Xv5oyd4hvohVKIjLjnWiyNwdNtpAlFSBPQfWomkI hsYFzAxnrgBslZ3GSozwD8xM9olbOmu0zgXgxiq+g59pcV7FExDTDvN/996ie6zTjNHVOb gldMpxgCYZEO5k6t3jdpgVvBEnqRTgxTywzvFNBTKodvqimUwoHNlfIfLjv1ba9zabVz3s 30NLNedacqcPr7+qPcrFAfjglmk+HSY6GmsMQ7M8+ChkBu3amoS4M7IXA7VB/Bc3gU5qPO M5x4pFF2KJFQMH+6XxRSdcI3WbiX29lzQ2ddp2YzH34O/g94A/568PQlqP7upg== Received: from webmail.leidinger.net (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (Client did not present a certificate) by outgoing.leidinger.net (Postfix) with ESMTPS id B61CB4781 for ; Wed, 3 Aug 2022 08:54:39 +0200 (CEST) Date: Wed, 03 Aug 2022 08:54:33 +0200 Message-ID: <20220803085433.Horde.aghywmAauLjH7fJCEFFzNvn@webmail.leidinger.net> From: Alexander Leidinger To: freebsd-arch@freebsd.org Subject: Re: cron @shutdown In-Reply-To: <20220802145433.E2DB351D@slippy.cwsent.com> Accept-Language: de,en Content-Type: multipart/signed; boundary="=_f4H1u9XgQt8vJJvlrnF57bh"; protocol="application/pgp-signature"; micalg=pgp-sha256 List-Id: Discussion related to FreeBSD architecture List-Archive: https://lists.freebsd.org/archives/freebsd-arch List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arch@freebsd.org MIME-Version: 1.0 X-Rspamd-Queue-Id: 4LyN0H3cwsz419g X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=leidinger.net header.s=outgoing-alex header.b=UB+6zGQw; dmarc=pass (policy=quarantine) header.from=leidinger.net; spf=pass (mx1.freebsd.org: domain of Alexander@leidinger.net designates 89.238.82.207 as permitted sender) smtp.mailfrom=Alexander@leidinger.net X-Spamd-Result: default: False [-6.10 / 15.00]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[leidinger.net,quarantine]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[leidinger.net:s=outgoing-alex]; MIME_TRACE(0.00)[0:+,1:+,2:~]; DKIM_TRACE(0.00)[leidinger.net:+]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arch@freebsd.org]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; ASN(0.00)[asn:34240, ipnet:89.238.64.0/18, country:DE]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arch@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; RCVD_TLS_ALL(0.00)[] X-ThisMailContainsUnwantedMimeParts: N This message is in MIME format and has been PGP signed. --=_f4H1u9XgQt8vJJvlrnF57bh Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Cy Schubert (from Tue, 02 Aug 2022=20= =20 07:54:33=20-0700): > Hi, > > Does anyone think there might be some utility with an @shutdown crontab(5= ) > "nickname" similar to @reboot but instead when cron shuts down? > > I pointed out to one of my customers that @reboot might be an option > instead of an rc script (or in his case a systemd unit file). Not that an > @reboot for FreeBSD cron would contribute to solving his Linux problem bu= t > might our users be interested in something like this? I'm a little bit puzzled... "@stop" (when cron is stopped) is easy to implement, but the use cases=20= =20 for=20this are ... IMO very limited (and I would question if another way=20= =20 of=20implementing the application logic where this is used may be better). "@shutdown" is not only a simple change to cron but also needs some=20=20 logic=20to distinguish a stop/restart of crond from a full system=20=20 shutdown.=20As such from a layering logic I would rather go with a rc=20=20 script=20instead of a cron entry. I understand that real-world ... "rules" ... can lead to situations=20=20 where=20@shutdown would make life more easy. How far do we want to go=20=20 there?=20Where do we draw a line between layering violations and stupid=20= =20 policies=20or convenience or "I don't want to talk with a colleague"=20=20 situations=20(or whatever it is)? This message is not a "no-vote", it is a "take a step back, take a=20=20 deep=20breath, and ask yourself if we really want to do that". Bye, Alexander. --=20 http://www.Leidinger.net=20Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_f4H1u9XgQt8vJJvlrnF57bh Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIzBAABCAAdFiEER9UlYXp1PSd08nWXEg2wmwP42IYFAmLqG6kACgkQEg2wmwP4 2IYRIhAAhpAtEBiI9xoNzXaVjdWxlphXxR6K3R6tNPzk1rGtt33/PKwHXXUgS2AM VPMEr/CrzrTe7JkbBhLZVx9bQ+aOTdBe4gReg4kwV41Xu/NWuzhbiPIt4xCR2SH2 bEo+N/dKW8jaxCygOXryMVbD+h96HnEcpUIiZrrP9Od9lKVDgtQZcIdGI4SQbSw/ vTAIeMx4FsZR75+wW2Ux5GuYVG2PcYAel6I4RmfqTl/2QPIVR1dHN7EF/YBSuiLO /209igigWtY0T/1j3bONp0xW+tFM2osek73I1FFHAe7anOB/Vl40qt5QUn9cFmXI RcqeQB7+Nv4kxMBYmbYPaQ+hCzl9GNEAQIJtklhx043na3IgCUAXxhKH0nRgwMh6 hFbVlLUYVOlx9O2tlNilb0xo2Vx+MYFXA56kIm0lSgMGHaCPliZ33alJ0JOsvY7O MT0Lz/BVH0W6Rmm7cmJT/SGWTxqPAkyye7etGUqoCQAPeJlUbf09SHb/PM40YweA oTrkPid82HH7PYmAvZuQN5hI1WLHHnx/PczXy/fotC7L5uPRobH9p7dumeSQs2+b SdfpKBqrL+ryI3I63eswmrEEsXz9oAkkQvR0yHRcV9m6CUL07CH7IWoBw1Zedxu3 GuhK/wlPdG9qZ0eeuhmJOgVj4BZI6zPh2hq0GzoIJzB+FyMyiMQ= =S22F -----END PGP SIGNATURE----- --=_f4H1u9XgQt8vJJvlrnF57bh--