This commit is contained in:
Raven Scott
2026-04-03 20:33:24 -04:00
parent ae6b7f8652
commit e58a9f99d6
184 changed files with 1636 additions and 109 deletions
+4 -2
View File
@@ -30,9 +30,11 @@ Read [`bare-initd.js`](../packages/bare-os-booter/lib/bare-initd.js) before addi
---
## Cron
## Cron and timers
**`crontab`** stores user jobs; the scheduler invokes **`ctx.execLine`** per job. “Apps” that need periodic behavior can install cron lines—again, expressed as **shell lines**, not separate processes.
**`bare-cron`** reads **`/etc/bare-os/crontab`** on the system image (if present), then the users **`~/.crontab`** on the personal drive; invalid lines are logged and skipped. **`crontab`** installs/lists/removes the **user** file (requires login). Timer drop-ins under **`~/.config/bare-os/timers/*.timer`** (**`[Timer]`** **`OnCalendar=`** + **`ExecLine=`**) merge into the same minute scheduler. See [Handbook ch.4](../handbook/04-the-booter-runtime.md) and [Developer guide ch.11](11-kernel-pear-cookbook.md).
**Socket-shaped activation:** initd unit drop-ins can set **`SocketActivationIpc=<fifo-name>`** so a services **`start()`** runs when something first **`readFile`**s that logical FIFO under **`/run/bare-os/ipc/`** (see **`bare-initd.js`**).
---