Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Aug 2022 08:02:43 -0700
From:      Cy Schubert <Cy.Schubert@cschubert.com>
To:        Warner Losh <imp@bsdimp.com>
Cc:        Cy Schubert <Cy.Schubert@cschubert.com>, "freebsd-arch@freebsd.org" <freebsd-arch@freebsd.org>
Subject:   Re: cron @shutdown
Message-ID:  <20220802150243.242AF580@slippy.cwsent.com>
In-Reply-To: <CANCZdfo9JZzH8GkA%2Bd1ddi6cATfbN1e0%2B5_j3ALDpmgT63EYDQ@mail.gmail.com>
References:  <20220802145433.E2DB351D@slippy.cwsent.com>  <CANCZdfo9JZzH8GkA%2Bd1ddi6cATfbN1e0%2B5_j3ALDpmgT63EYDQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In message <CANCZdfo9JZzH8GkA+d1ddi6cATfbN1e0+5_j3ALDpmgT63EYDQ@mail.gmail.c
om>
, Warner Losh writes:
> --000000000000543e5405e5435396
> Content-Type: text/plain; charset="UTF-8"
>
> On Tue, Aug 2, 2022, 8:54 AM Cy Schubert <Cy.Schubert@cschubert.com> 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 <Cy.Schubert@cschubert.com>
FreeBSD UNIX:  <cy@FreeBSD.org>   Web:  http://www.FreeBSD.org
NTP:           <cy@nwtime.org>    Web:  https://nwtime.org

			e**(i*pi)+1=0





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