Re: cron @shutdown
Cy Schubert <[email protected]>
| Newsgroups | gmane.os.freebsd.architechture |
|---|---|
| Message-ID | <[email protected]> |
In message <[email protected] om> , Warner Losh writes: > --000000000000543e5405e5435396 > Content-Type: text/plain; charset="UTF-8" > > On Tue, Aug 2, 2022, 8:54 AM Cy Schubert <[email protected]> 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 <[email protected]> FreeBSD UNIX: <[email protected]> Web: http://www.FreeBSD.org NTP: <[email protected]> Web: https://nwtime.org e**(i*pi)+1=0