Gentoo Development Guide

Init Scripts

Init scripts should be installed into /etc/init.d using the doinitd or newinitd functions (see Install Functions Reference). Any configuration (commandline parameters or environment variables) for these scripts should be handled via entries in /etc/conf.d with the same filename — doconfd or newconfd can be used to install these.

An overview of the Gentoo init system and how to write init scripts is available in the Writing Init Scripts section.