Thursday, September 4, 2008

init vs telinit

when switching runlevels in ubuntu hardy, what exactly is the subtle difference between sudo telinit and sudo init ?


old soldier

init is not normally executed by a user process, and expects to have a process id of 1. If this is not the case, it will actually execute telinit( 8 ) and pass all arguments to that. See that manual page for further details.

use telinit because init just calls it anyways.

No comments:

Post a Comment