From nobody Tue Aug 2 15:02:43 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 4LxysK50Bhz4YKQR for ; Tue, 2 Aug 2022 15:02:45 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from omta001.cacentral1.a.cloudfilter.net (omta001.cacentral1.a.cloudfilter.net [3.97.99.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "Client", Issuer "CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LxysK0SS0z3gdY for ; Tue, 2 Aug 2022 15:02:45 +0000 (UTC) (envelope-from cy.schubert@cschubert.com) Received: from shw-obgw-4001a.ext.cloudfilter.net ([10.228.9.142]) by cmsmtp with ESMTP id IfNwo3JQkS8WrItPwo81vZ; Tue, 02 Aug 2022 15:02:44 +0000 Received: from spqr.komquats.com ([70.66.148.124]) by cmsmtp with ESMTPA id ItPvoUM1TuJwwItPwoaWkO; Tue, 02 Aug 2022 15:02:44 +0000 X-Authority-Analysis: v=2.4 cv=F+BEy4tN c=1 sm=1 tr=0 ts=62e93c94 a=Cwc3rblV8FOMdVN/wOAqyQ==:117 a=Cwc3rblV8FOMdVN/wOAqyQ==:17 a=kj9zAlcOel0A:10 a=biHskzXt2R4A:10 a=YxBL1-UpAAAA:8 a=6I5d2MoRAAAA:8 a=EkcXrb_YAAAA:8 a=byGlL1sLIYWdIabGiZEA:9 a=CjuIK1q_8ugA:10 a=Ia-lj3WSrqcvXOmTRaiG:22 a=IjZwj45LgO3ly-622nXo:22 a=LK5xJRSDVpKd5WXXoEvA:22 Received: from slippy.cwsent.com (slippy [10.1.1.91]) by spqr.komquats.com (Postfix) with ESMTP id 4DBD61A5B; Tue, 2 Aug 2022 08:02:43 -0700 (PDT) Received: by slippy.cwsent.com (Postfix, from userid 1000) id 242AF580; Tue, 2 Aug 2022 08:02:43 -0700 (PDT) X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev Reply-to: Cy Schubert From: Cy Schubert X-os: FreeBSD X-Sender: cy@cwsent.com X-URL: http://www.cschubert.com/ To: Warner Losh cc: Cy Schubert , "freebsd-arch@freebsd.org" Subject: Re: cron @shutdown In-reply-to: References: <20220802145433.E2DB351D@slippy.cwsent.com> Comments: In-reply-to Warner Losh message dated "Tue, 02 Aug 2022 08:56:35 -0600." 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 Content-Type: text/plain; charset=us-ascii Date: Tue, 02 Aug 2022 08:02:43 -0700 Message-Id: <20220802150243.242AF580@slippy.cwsent.com> X-CMAE-Envelope: MS4xfC/aetBi4MvvJ1hK95HGzu+hOuNBa3eT6nkIjLfyzMVrMiUTk5t6UtaLLBuduh3JUGx3I1H/lBM6GxBZFhe8fFiWsut82B1YVabqOPM9VKakYM94y1un L740JVzwwsAPZDMod/sryLONMEqiKERTxGmoEfgAcNKNiv0rBh0SaSV9Vc5mrg3Lvn4e+ptWOHT0uShz66C6vZVLX0uBHAnehU26CPf0TeQXoe4LCut9Xz3l X-Rspamd-Queue-Id: 4LxysK0SS0z3gdY X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of cy.schubert@cschubert.com has no SPF policy when checking 3.97.99.32) smtp.mailfrom=cy.schubert@cschubert.com X-Spamd-Result: default: False [-1.80 / 15.00]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.998]; MV_CASE(0.50)[]; RCVD_IN_DNSWL_MED(-0.20)[3.97.99.32:from]; MIME_GOOD(-0.10)[text/plain]; R_DKIM_NA(0.00)[]; MLMMJ_DEST(0.00)[freebsd-arch@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; R_SPF_NA(0.00)[no SPF record]; HAS_REPLYTO(0.00)[Cy.Schubert@cschubert.com]; TO_DN_SOME(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; TO_DN_EQ_ADDR_SOME(0.00)[]; ASN(0.00)[asn:16509, ipnet:3.96.0.0/15, country:US]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[cschubert.com: no valid DMARC record]; RCPT_COUNT_THREE(0.00)[3]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_LAST(0.00)[] X-ThisMailContainsUnwantedMimeParts: N In message , Warner Losh writes: > --000000000000543e5405e5435396 > Content-Type: text/plain; charset="UTF-8" > > On Tue, Aug 2, 2022, 8:54 AM Cy Schubert wrote: > > > 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 but > > might our users be interested in something like this? > > > > > If it's simple and increases portability, I'm all for it. It's simple but there's no Linux equivalent, yet. My thoughts are to implement in FreeBSD then canvas then submit a pull request to the Linux Vixie Cron maintainer and discuss with the various Linux vendors. It's a simple thing to do that empowers end-users who wish to run services on their machines without startup scripts and superuser privileges needed to maintain them -- like at $JOB where privilege separation is somewhat of a religion. -- Cheers, Cy Schubert FreeBSD UNIX: Web: http://www.FreeBSD.org NTP: Web: https://nwtime.org e**(i*pi)+1=0