Updates
This commit is contained in:
@@ -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 user’s **`~/.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 service’s **`start()`** runs when something first **`readFile`**s that logical FIFO under **`/run/bare-os/ipc/`** (see **`bare-initd.js`**).
|
||||
|
||||
---
|
||||
|
||||
|
||||
Reference in New Issue
Block a user