On Wed, 07 Jul 2021 11:30:59 -0400, Dennis Lee Bieber wrote:
> On Wed, 7 Jul 2021 14:25:07 +0200, "A. Dumas"
> <alex...@dumas.fr.invalid>
> declaimed the following:
>
>
>>What still works in Raspberry Pi OS is to put startup scripts in
>>/etc/rc.local
>>
> I'd probably avoid any /etc/rc.* since they should be symlinked
into
> the various run-levels, with both startup and shutdown scripts/options
> as run-levels change.
>
Also, the /etc/rc.* were used by the UNIX V init system control scripts
which wiere initially used by Linux, but which have now been obsoleted by
systemd. While systemd does still run System V process control scripts,
sooner or later they'll be obsoleted and will need to be replaced by
systemd process control scripts so, it might be a god idea to use systemd
process control scripts from the getgo. There's fairly decent, readable
documentation for writing them here:
https://www.freedesktop.org/wiki/Software/systemd/
> crontab using an @boot specification for "time to run", and maybe with
> a shell delay to ensure system is stable
>
A description of the cron daemon, which starts programs that you want to
run at fixed times of the day or week can be seen by running "man cron"
and "man 5 crontab" describes the files that control this process and
what to put in them.
As an example, I use cron to fetch mail from my ISP every 10 minutes and
also to do housekeeping tasks such as making daily backups at around 3AM
every day, so that (a) I don't have to remember to do it and (b) this
stuff gets done when I'n not using the machines for anything else.
--
Martin | martin at
Gregorie | gregorie dot org