telinit [OPTION]... RUNLEVEL
telinit may be used to change the system runlevel.
The RUNLEVEL argument should be one of the multi-user runlevels 2-5, 0 to halt the system, 6 to reboot the system or 1 to bring the system down into single-user mode.
Normally you would use the shutdown(8) tool to halt or reboot the system, or to bring it down to single-user mode.
RUNLEVEL may also be S or s which will place the system directly into single-user mode without actually stopping processes first, you probably won't want that.
The runlevel is changed by emitting the runlevel(7) event, which includes the new runlevel in the RUNLEVEL environment variable as well as the previous runlevel (obtained from the environment or from /var/run/utmp) in the PREVLEVEL variable.
telinit will write the new runlevel to /var/run/utmp and append a new entry to /var/log/wtmp.
telinit may be also used to send basic commands to the init(8) daemon for compatibility with System V. These are:
Note that if the init daemon is not Upstart, this option will have no effect on the running init(8) daemon.
The Upstart init(8) daemon does not keep track of runlevels itself, instead they are implemented entirely by its userspace tools.
See runlevel(7) for more details.
Written by Scott James Remnant <scott@netsplit.com>
Report bugs at <https://launchpad.net/upstart/+bugs>
Copyright © 2009 Canonical Ltd.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.