Disable ads (and more) with a premium pass for a one time $4.99 payment
The directory that contains the service startup scripts on an old SysV init system is indeed /etc/init.d. In this directory, you will find scripts that are responsible for starting, stopping, and managing system services during the boot process and when the system is running.
The SysV init system operates by using these startup scripts to manage services in a consistent manner. Each script typically corresponds to a specific service, and it's named in a way that reflects that service's functionality. These scripts allow for simple commands to control the services, making it easier to manage the startup and shutdown procedures of various system processes.
In contrast, the other directories mentioned do not serve the same purpose. /usr/local/bin is typically used for local user executables and is not related to service management. /var/run holds transient runtime data that are not specifically tied to service startup scripts, while /etc/network contains scripts and configuration files related to network interfaces, not service management. Thus, /etc/init.d is the definitive location for SysV init service startup scripts.