Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Aug 2022 08:54:33 +0200
From:      Alexander Leidinger <Alexander@leidinger.net>
To:        freebsd-arch@freebsd.org
Subject:   Re: cron @shutdown
Message-ID:  <20220803085433.Horde.aghywmAauLjH7fJCEFFzNvn@webmail.leidinger.net>
In-Reply-To: <20220802145433.E2DB351D@slippy.cwsent.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <Cy.Schubert@cschubert.com> (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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20220803085433.Horde.aghywmAauLjH7fJCEFFzNvn>