Skip to main content

Service Decommissioning Checlist

Purpose

This checklist is to ensure that all aspects of an active service are decommissioned properly to prevent potential failures elsewhere in the system.

Steps

  • Determine which monitoring systems need to be disabled, permanently and temporarily to prevent service outage notifications
  • If this service has a MariaDB, PostgreSQL or otherwise database, remove its entry from the nixOS config to prevent backup failure
  • If this service is running in a Docker container, tear down its compose project. Otherwise stop the service and disable/remove its nixOS config. Push configuration change to staging branch
    • Do not push this change to main until testing that the configuration builds successfully

  • If this service is a docker-compose project, move its folder to ~/Containers/.retired-services
  • If this service is publicly exposed with a TLS cert, remove its entry from traefik's acme.json file to prevent unwanted cert renewals
  • If remaining data is unwanted, clear all relevant files from the filesystem i.e. /srv/<servicename> and from any relevant databases
  • Push changes fromstaging to main 
  • If any related monitoring systems were temporarily put into maintenance mode, re-enable them in Uptime Kuma and Healthchecks