Skip to content

BOOT_D

object BOOT_D adm/daemons/boot.c

A small persistent daemon that tracks how many times the game has booted. The boot number is useful for gating one-time-per-boot behaviour. BOOT_D listens for SIG_SYS_BOOT, increments its counter, and saves; everything else just reads the count.

inherits STD_DAEMON std/daemon/daemon.c
inherits EXT_LOG std/ext/log.c
variable boot_number int
# public boot

Signal handler for SIG_SYS_BOOT. Increments and logs the boot number, then persists it. Rejects callers other than the signal daemon.

returns void
# public query_boot_number

Returns the current boot number — the count of times the game has booted.

returns int The current boot number