insserv
insserv is a tool used in Linux systems for managing the runlevels and dependencies of services. It's part of the insserv package and is often found on Debian-based distributions. The primary function of insserv is to process service initialization scripts (init scripts) and create the necessary symbolic links in the /etc/rcX.d directories, where X represents a runlevel. These links determine which services are started and stopped at specific runlevels.
Unlike simpler methods of managing services, insserv analyzes the dependencies declared within the init scripts themselves.
When a service's init script is modified or added, insserv can be invoked to update the runlevel