Sponsored Content
Full Discussion: Power off on SCO 5.0.6
Operating Systems SCO Power off on SCO 5.0.6 Post 303014283 by jgt on Thursday 8th of March 2018 01:14:37 PM
Old 03-08-2018
Read the following section of the init command man page.
Code:
0                                                                            
       Shut the machine down so it is safe to remove the power.              
       Have the machine remove power if it can. This state can be            
       executed only from the console.                                       
       Note that init 0 should not be used if you have a USB                 
       keyboard attached to the console. During an init 0, the               
       USB stack gets shut down and the system then waits for a              
       keyboard keypress interrupt before rebooting. Since USB is            
       gone, there's no way for a keypress on the USB keyboard to            
       get serviced, and the system does not respond. If this                
       occurs, you must either press the hardware reset button or            
       power cycle the system.                                               
1                                                                            
       Put the system in single-user mode. Unmount all file                  
       systems except the root filesystem. All user processes are            
       killed except those connected to the console. It is                   
       recommended that this state be executed only from the                 
       console.                                                              
2                                                                            
       Put the system in multiuser mode. All multiuser                       
       environment terminal processes and daemons are spawned.               
   5                                                                            
          Stop the UNIX system and go to the firmware monitor.                  
   6                                                                            
          Stop the UNIX system and reboot to the run-level defined              
          by the initdefault entry in /etc/inittab.

The above is from the 6.0.0 documentation but is backwards compatible to Xenix.

---------- Post updated at 01:14 PM ---------- Previous update was at 01:09 PM ----------

If you are unable to power down the system, because the cmos does not support it, you may be able to create a workaround using a UPS that you can send a "power off in 5 minutes" command to just prior to shutting down the SCO system.
 

We Also Found This Discussion For You

1. UNIX for Dummies Questions & Answers

boot up failure unix sco after power failure

hi power went out. next day unix sco wont boot up error code 303. any help appreciated as we are clueless. (11 Replies)
Discussion started by: fredthayer
11 Replies
rc0(8)							      System Manager's Manual							    rc0(8)

NAME
rc0 - Runs command script executed when stopping the system SYNOPSIS
rc0 DESCRIPTION
The rc0 script contains run commands that enable a smooth shutdown and bring the system to a single-user state; run levels 0 and s. In addition to commands listed in within the script itself, rc0 contains instructions to run commands found in the /sbin/rc0.d directory. The script defines the conditions under which the commands execute; some commands run if the system is being shut down while others run if the system is being shut down and rebooted to single user. By convention, files in the /sbin/rc0.d directory begin with either the letter "K" or the letter "S" and are followed by a two-digit number and a filename, for example: K00enlogin K05lpd K60cron K30nfs In general, the system starts commands that begin with the letter "S" and stops commands that begin with the letter "K." The numbering of commands in the /sbin/rc0.d directory is important since the numbers are sorted and the commands are run in ascending order. Files in the /sbin/rc0.d directory are normally links to files in the /etc/init.d directory. An entry in the inittab file causes the system to execute the rc0 script, for example: ss:Ss:wait:/sbin/rc0 shutdown < /dev/console > /dev/console 2>&1 s0:0:wait:/sbin/rc0 off < /dev/console > /dev/console 2>&1 The following operations are typical of those that result from executing the rc0 script and the commands located in the /sbin/rc0.d direc- tory: Notify users that the system is shutting down. Sync the disks Stop system services and daemons Stop processes Kill processes Unmount file systems Invoke init if the system is being shut down to single user The killall command sends a SIGTERM signal to stop running processes; SIGKILL follows to kill all processes except the process which initi- ated the call. The umount -a command unmounts all file systems except the root file system. FILES
Specifies the command path Specifies the directory of commands that corresponds to the run level RELATED INFORMATION
Commands: init(8), killall(8), rc2(8), rc3(8), shutdown(8) delim off rc0(8)
All times are GMT -4. The time now is 07:41 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy