https://saitorhan.com/sql-server-startup-procedures/
SQL Server Startup Procedures