HALT(8) — UNIX Programmer’s Manual
NAME
halt, reboot − halt or reboot the system
SYNOPSIS
/sbin/halt [ −n ] [ −q ] [ −y ]
/sbin/reboot [ −n ] [ −q ] [ −s ] [ −RISCOS ] [ −y ]
DESCRIPTION
Halt writes out cached information to the disks and then stops execution of RISCiX, with control passing to the RISCOS operating system. If the RISCiXFS module had been configured to automatically invoke RISCiX whenever the workstation is booted, then it is inappropriate for control to be passed to RISCOS, in which case the processor just loops.
The −RISCOS option to reboot will allow control to be passed to RISCOS regardless of whether RISCiXFS has been configured to automatically boot RISCiX.
Reboot writes out cached information and then reboots RISCOS. When the RISCiXFS module is started (usually from the RISCOS !Boot file) RISCiX is automatically rebooted.
The net effect is that reboot causes RISCiX to reboot in multi-user mode, see init(8), after a short delay. The −s option causes the reboot to be in single-user mode. This option is ineffective if the secure boot version of RISCiXFS is installed in RISCOS or if the machine is configured to automatically boot unix. In the first case RISCiX will always reboot in secure mode, requiring the entry of the super-user password to get into single-user mode. In the second RISCiX will always reboot in multi-user mode.
The −n option prevents the sync before stopping. The −q option causes a quick halt, no graceful shutdown is attempted. The −y option is needed if you are trying to halt the system from a dialup.
Halt and reboot normally log the shutdown using syslog(8) and places a shutdown record in the login accounting file /var/adm/wtmp.
These programs are in fact links to the same file, thus all the options available to reboot can be used with halt, although the results are not normally useful. This file is supplied without the set-uid bit set, thus only the super user can shut down the system. If the system administrator so wishes, he (or she) can set the set-uid bit so that all users (or all members of a particluar group) are able to shut down the system.
SEE ALSO
shutdown(8), syslog(8), fastboot(8)
4th Berkeley Distribution — Revision 1.10 of 23/11/90