Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

SCO 5.0.5 shutdown or reboot using init command

Posted on 2007-04-03
5
Medium Priority
?
2,864 Views
Last Modified: 2013-12-05
I am using SCO 5.0.5 and on other PC's where I have used I could from the root prompt either type init 6 to reboot or init 0 to get it in a turn off/ press any key to reboot state.
The new machine I'm using works great but when I use either init 6 or 0, it gets to the
Safe to Power Off
or
Press any key to restart.
Regardless of what I do nothing happens. It won't reboot and pressing the power key should turn it off immediately but doesn't.
I have checked man reboot, man init man shutdown but I'm damned if I can find where or which file to vi and change it.
0
Comment
Question by:weeph
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 38

Expert Comment

by:yuzh
ID: 18848645
Can you use:

shutdown -g0 i0

or haltsys

to shutdown the system?

or
shutdown -g0 i6

to reboot the box?

check /etc/default/shutdown file

check /var/adm/messages to see if any error.
0
 

Author Comment

by:weeph
ID: 18848801
Sorry I should have mentioned that even using shutdown doesn't work.  Usining init 6 should reboot automatically and init 0 whould give the option to turn it off or press a key to restart.  Neither works.  Pressing a key does not reboot and pressing the power switch also does nothing.

haltsys & reboot do not shut down all of the processes that are running and I  can't afford to corrupt my database which has happened when I have used these options in the past.
When I use init 6 the unit stops all of the process and then comes up with
'The system is down
Automatic Boot Procedure'

But it certainly doesn't reboot itself as it should.
0
 
LVL 38

Accepted Solution

by:
yuzh earned 2000 total points
ID: 18849043
You might have corrupt file in your box, can you copy the shutdown file from other SCO 5.0.5 box to see if it work?

0
 

Author Comment

by:weeph
ID: 18861358
Tried that, but no luck.  Still won't reboot on init 6 or allow me to press any key to restart or switch off using init 0.
Shutdown has the same effect.  Can't restart with a press of a key
0
 

Author Comment

by:weeph
ID: 18887420
Had a guts full of it so I trook the hard drive out of the box and put it in a crappy Compaq Deskpro EN desktop and away it went.  Init 0 & 6 wirk fine.  Must have something to do with the box which is a Celeron 2.4.  Even stting it at fail safe option in the bios made no difference.  
The points are yours
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

660 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question