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
Solved

immediate shutdown command?

Posted on 2013-06-18
6
500 Views
Last Modified: 2013-07-17
Hello! I don't know if anyone can help me, but I want to know what shutdown command starts an immediate shutdown? I know just "shutdown" holds the shutdown for a minute until everyone logs out, but what is the command for immediate shutdown? Thanks!
0
Comment
Question by:mrosier
6 Comments
 
LVL 31

Expert Comment

by:farzanj
ID: 39257170
Try:
init 0

OR
shutdown -h now
0
 

Author Comment

by:mrosier
ID: 39257177
thanks will do! I will get back to you tomorrow though when I can try it before anyone is logged into it. Thanks!
0
 
LVL 68

Accepted Solution

by:
woolmilkporc earned 500 total points
ID: 39257226
If it's really SCO Unix there is no way to bypass the grace period by means of a shutdown flag.

You must use

/etc/haltsys

instead.

Please be aware that "haltsys" does not terminate any user processes gracefully, it halts the processor and just takes care not to corrupt filesystems.

I'd really suggest using shutdown. What's wrong with that 1 minute wait time?

You can run "shutdown -y" to bypass the confirmation prompt.
0
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 

Author Comment

by:mrosier
ID: 39257238
There isn't a problem really, I was just wondering if there was a way to avoid the 1 minute because everyone who uses that system is already out of the system whenever I need to shut it down so it is just unnecessary really.
0
 
LVL 27

Expert Comment

by:skullnobrains
ID: 39292381
"-g0" works on some sco versions. take a look at the man page

you should be able to kill init as well, but i don't really know which signal would initiate a clean shutdown
"kill -9 1" should be VERY efficient though
0
 

Author Closing Comment

by:mrosier
ID: 39333593
I couldn't get the immediate shutdown I wanted, but "shutdown -y" got me closest
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Let's say you need to move the data of a file system from one partition to another. This generally involves dismounting the file system, backing it up to tapes, and restoring it to a new partition. You may also copy the file system from one place to…
A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

840 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