Solved

immediate shutdown command?

Posted on 2013-06-18
6
496 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now