Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've been looking on the Internet for an answer and haven't found a concrete one. If I want to change the runlevel it is okay to use just init or do I always have to call it through telinit.

I've read that telinit is in fact a symlink to init. If this is correct, can I use them interchangeably?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

The manual page telinit(8) answers your question: use telinit.

telinit may be used to change the system runlevel.

share|improve this answer

It should be fine to change the runlevel with either one. As init is supposed to check if it is the real init process. Or just a telinit, by checking if it's pid is one, not by the name of the file.

So yes, you should be able to use them interchangeably.

However, I cannot guarantee there are no non-conforming systems, where this will not work out. It is best to check yourself if it works as intended on your install.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.