How to view the startup and shutdown lists

The SessionManager Object subclass: #SessionManager instanceVariableNames: 'currentSession categories guiCategory toolsCategory networkCategory systemCategory userCategory' classVariableNames: 'Default' package: 'System-SessionManager-Base' is responsible with managing how sessions work in Pharo. A session defines the boundaries of work in the image.

Projects can register handles with the default manager that are notified when the image is started or stopped. They can use this to clear or initialize resources.

SessionManager default
  

Startup List

The list of handlers called when the image is started.

Shutdown list

The list of handlers called when the image is stopped.

In general terms, the shutdown list is the startup list reversed.