As a result of past shutdowns and experiences with near shutdowns, agencies have developed policies and procedures to address such occurrences. The White House Office of Management and Budget maintains a central repository of individual agency policies, available here.