LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Shutdown Time on Open Solaris 2008.11 (https://www.linuxquestions.org/questions/solaris-opensolaris-20/shutdown-time-on-open-solaris-2008-11-a-692096/)

tschima 12-21-2008 03:39 PM

Shutdown Time on Open Solaris 2008.11
 
Hi, I've been looking for how to adjust the shutdown time in these pages, and so far have not found what I'm looking for. I also downloaded the basic and advanced Sys Admin User's Guide for Solaris Express. Still, I cannot find anything to explanin how to do this. If someone could please tell me how to change the shutdown time so that when I click the menus, the system will shutdown quickly.

This is a home brew box w/4GB ram, 120GB seagate, 512MB ATI graphics, AMD Athlon 64 X2, running OpenSolaris 2008.11. I'm a unix noobie. Thanks.

Terry

jlliagre 12-21-2008 04:38 PM

There is no generic setting that would reduce the shutdown time.

How long does your box take to shutdown ?

kebabbert 12-22-2008 10:24 AM

I have a similar problem in Solaris Express. Shutdown takes forever. Therefore I just write the command as root:
# poweroff

or
# reboot

Which executes very quick.

bathory 12-22-2008 02:11 PM

I think that the OP talks about the 60 seconds that you must wait until the shutdown starts once you press the Shutdown button. I guess this can be adjusted from the gnome configuration.
Another way to start shutdown immediately is:
Code:

init 5

tschima 12-22-2008 10:31 PM

Thanks to all who answered. I would just like to have a Solaris installation where everything worked correctly so I could then proceed to learn it -- maybe with one of those "Teach Yourself System Adminstration in 24 Decades" books.

To jlliagre: It takes it about 1.25 min. After I click the System menu, then Shutdown, then Shutdown again, it waits 60 seconds. If the shutdown script is checking to see if services are running that need to be stopped or something like that, then I can learn to live with it. But if those 60 seconds are not needed, I would like to change the shutdown and reboot options to kick into action more quickly. If I need to dismount drives or something like that, I can do that if the shutdown script is doing that. I like the shutdown button in Linux Mint. If you have something mounted like a USB drive, it won't let you shutdown/reboot until you umount it. But it won't tell you that, you just have to know.

To kebabbert:
I knew about the reboot command, but not the poweroff. Thanks.

To bathory:
I wasn't sure if using the init 5 command like that was a safe way to shutdown (since there is a shutdown script that is attached to the gnome menu), so I didn't try it. But you mentioned that the gnome program can be configured to one's liking regarding this. Do you know how? Sorry, I'm a newbie. I sometimes don't even know how to look up what I'm looking for (because if you don't know the technical language, you can't ask for what you need).

Thanks again.

Terry

kebabbert 12-23-2008 05:09 AM

init 5 to shutdown should be safe. Ive used it numerous times without any problems.
init 6 to reboot.

The problem is that both take long time to complete. I use "poweroff" and Solaris shuts down in 10 secs or so.

jlliagre 01-05-2009 06:48 AM

"init 5" takes some time to proceed for a reason. It close all services in an ordered and graceful way.

poweroff is obviously quicker but it kills all applications without letting them much chance to close their stuff properly. Although the risk is pretty low, I almost never shutdown Solaris that way.

tschima 01-06-2009 07:46 PM

To jlliagre:

This is exactly why I asked the question. I wanted to know if OpenSolaris needed that much time to shutdown/reboot before actually doing it. Thanks.

T

crisostomo_enrico 01-07-2009 04:04 AM

Even if there's the button, maybe I'm a dinosaur, but I keep on using
Code:

$ pfexec shutdown -y -g 1 -i 5 now
That's start the shutdown procedure immediately instead of after the default 60 seconds. Adjust the grace time at pleasure.

Bye,
Enrico

tschima 01-08-2009 04:19 PM

Hey, thank Enrico. I'll give that a try too.

T


All times are GMT -5. The time now is 09:43 AM.