Solved

immediate shutdown command?

Posted on 2013-06-18
6
498 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
Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

 

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 26

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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
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 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…
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.

810 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