Initialization and startup
Factor handbook ยป The implementation

Prev:Running code on startup
Next:System interface


When Factor starts, the first thing it does is call a word:
boot ( -- )


Next, initialization hooks are called:
do-startup-hooks ( -- )


Initialization hooks can be defined:
add-startup-hook ( quot name -- )


Corresponding shutdown hooks may also be defined:
add-shutdown-hook ( quot name -- )


The boot quotation can be changed:
startup-quot ( -- quot )

set-startup-quot ( quot -- )


When quitting Factor, shutdown hooks are called:
do-shutdown-hooks ( -- )