tiersten wrote: telinit is used to signal init that you want to change to a different runlevel. You're supposed to use telinit.
liven wrote: Is telinit an older command to be depriciated?
tiersten wrote: liven wrote: Is telinit an older command to be depriciated? Just doing init <new runlevel> works because at some point, somebody added code to support that. For compatibility with other UNIX systems which may not use the same init, you're still supposed to use telinit. It isn't depreciated. A program can tell what name you're executing it as. Just because its a symlink doesn't mean the two copies will do the same thing. There is a mini utility package called busybox which implements a basic version of several utilities. You only ever get 1 binary called busybox. Everything else is symlinked to that. It knows what you're trying to do because of what the symlink names are.
liven wrote: I guess my confusion is that I can not find a telinit command any where on any of the linux boxes I own or admin professionally. telinit is always a symlink to init.
liven wrote: Now I am sure there are some OS's out there that can tell the different between init and telinit.
liven wrote: But on the systems I use/maintain/admin/own when/why would I need to use telinit over init?
[mentholmoose@localhost ~]$ which init telinit | xargs ls -l -rwxr-xr-x. 1 root root 138312 2009-07-22 05:02 /sbin/init -rwxr-xr-x. 1 root root 60504 2009-07-22 05:02 /sbin/telinit [mentholmoose@localhost ~]$ cat /etc/redhat-release Fedora release 11 (Leonidas) [mentholmoose@localhost ~]$ rpm -q upstart upstart-0.3.11-1.fc11.x86_64
[mentholmoose@localhost ~]$ init --help Usage: init [OPTION]... Process management daemon. Options: -q, --quiet reduce output to errors only -v, --verbose increase output to include informational messages --help display this help and exit --version output version information and exit This daemon is normally executed by the kernel and given process id 1 to denote its special status. When executed by a user process, it will actually run /sbin/telinit. Report bugs to <fedora-devel-list@redhat.com>