Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

immediate shutdown command?

Posted on 2013-06-18
6
Medium Priority
?
509 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 1500 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
Industry Leaders: 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!

 

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: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone 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

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating 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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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

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