/** * service_reload_dynamic - Called on SIGHUP, 'init q' or 'initctl reload' * * This function is called when Finit has recieved SIGHUP to reload * .conf files in /etc/finit.d. It is responsible for starting, * stopping and reloading (forwarding SIGHUP) to processes affected. */ void service_reload_dynamic(void) { /* First reload all *.conf in /etc/finit.d/ */ conf_reload_dynamic(); /* Then stop any disabled/removed services and non-reloadable */ service_stop_dynamic(); /* Finish off by starting/reload modified/new services */ service_start_dynamic(); }
/** * service_reload_dynamic - Called on SIGHUP, 'init q' or 'initctl reload' * * This function is called when Finit has recieved SIGHUP to reload * .conf files in /etc/finit.d. It is responsible for starting, * stopping and reloading (forwarding SIGHUP) to processes affected. */ void service_reload_dynamic(void) { /* First reload all *.conf in /etc/finit.d/ */ conf_reload_dynamic(); /* Then stop any disabled/removed services and non-reloadable */ service_stop_dynamic(); /* * Finish off by starting/reloading modified/new services. * Postponed to service_stop_done() to make sure all services * are guaranteed to have been stopped before being started * again. */ }