LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   I'm done here! (https://www.linuxquestions.org/questions/linux-general-1/im-done-here-847589/)

frankbell 12-02-2010 10:37 PM

If I'm using Slackware, su to root and shutdown now or shutdown now -H depending on whether the computer understands -H.

If I'm using something with a graphical login screen (Debian, Ubuntu), I use the menu.

I use sudo only if I have no choice. I'm an su kind of guy.

Timothy Miller 12-02-2010 11:45 PM

Quote:

Originally Posted by Kenny_Strawn (Post 4179021)
Not clicks, keystrokes. There's a difference.

The keys still click on every keyboard I own. A click is a click is a click, regardless of whether it's made by a mouse or a key.

So I still maintain 3 clicks is easier than 15.

MTK358 12-03-2010 08:20 AM

I use "sudo shutdown -h now", and even configured sudo not to require a password for the shutdown command. But I should probably use the power button, I guess it's time to get acpi working.

Anyway, in older computers, the power button actually switched off power the the computer. Now it notifies the OS, which can choose what to do.

GazL 12-04-2010 08:07 AM

Quote:

Originally Posted by dv502 (Post 4177323)

BTW, I noticed some members say they just press the power button to shutdown the system, but isn't this bad? Linux needs to unmount filesystems and sync disks and etc before quiting.

If I just powered-off at the wall socket then that's what you'd see and yes, an unclean shutdown is still a very bad thing to do. However, though most desktop systems still have a real power switch on the back of the psu, the power button on the front hasn't been a true power switch for a good number of years now, and will just generate an acpi event when pressed. It's up to the OS to decide what to do at that point. Recent versions of Slackware will respond by doing a clean shutdown.

A.Thyssen 12-14-2010 05:14 PM

Your poll is missing an entry...

Desktop Power Control.

All the desktops and even the login screens provide a method to poweroff laptops and desktops.

On the other hand servers do not provide that capability (for obvious reasons).


You are also missing the very obvious "poweroff" command!!!!
which of course could be using ANY of the polled command line methods.

Amdx2_x64 12-14-2010 05:25 PM

Usually for me I end up watching a movie when I fall asleep. So I use shutdown -h -P 120 (or however many minutes are left in the movie.)

disturbed1 12-14-2010 05:40 PM

Halt gets the job done.

AlienWolf 12-15-2010 05:07 AM

Tend not to issue shutdown commands from a terminal on my local PC any more.
Always have many ssh sessions open to critical servers, only one key away from an oops moment ;)

Kenny_Strawn 12-15-2010 05:15 AM

Quote:

Originally Posted by Amdx2_x64 (Post 4191560)
Usually for me I end up watching a movie when I fall asleep. So I use shutdown -h -P 120 (or however many minutes are left in the movie.)

And what do you use to watch movies on the computer? Do you have a TV tuner card (that actually works under Linux) or do you watch on the Internet?

prodev05 12-15-2010 05:45 AM

shutdown -h now : is the proper way to shutdown a server. Because the shutdown command will wait until the process is getting finished and proceed to shutdown the server

init 0 : This command is logically to tell the Operating environment to switch the runlevel. This will kill all the process with out wait.

halt : To shutdown the server Immediately.

poweroff : Just crash the FS and other sensitive process and power off the hardware.

Issuing "shutdown -h now" command is the best practice for production environment



Thanks :hattip:

H_TeXMeX_H 12-15-2010 06:53 AM

Quote:

Originally Posted by prodev05 (Post 4192194)
Issuing "shutdown -h now" command is the best practice for production environment



Thanks :hattip:

Really ? Well, thanks for making it so big, so we can see it even if we're blind.

Kenny_Strawn 12-15-2010 06:56 AM

Quote:

Originally Posted by prodev05 (Post 4192194)
shutdown -h now : is the proper way to shutdown a server. Because the shutdown command will wait until the process is getting finished and proceed to shutdown the server

init 0 : This command is logically to tell the Operating environment to switch the runlevel. This will kill all the process with out wait.

halt : To shutdown the server Immediately.

poweroff : Just crash the FS and other sensitive process and power off the hardware.

Issuing "shutdown -h now" command is the best practice for production environment



Thanks :hattip:

What about /etc/init.d/halt stop?

brianL 12-15-2010 06:57 AM

I've heard of warnings: Always read the small print, but that's ridiculous!

druuna 12-15-2010 07:16 AM

Hi,
Quote:

Originally Posted by prodev05 (Post 4192194)
shutdown -h now : is the proper way to shutdown a server. Because the shutdown command will wait until the process is getting finished and proceed to shutdown the server

init 0 : This command is logically to tell the Operating environment to switch the runlevel. This will kill all the process with out wait.

halt : To shutdown the server Immediately.

poweroff : Just crash the FS and other sensitive process and power off the hardware.

Issuing "shutdown -h now" command is the best practice for production environment

This advise is BS if you ask me. From the halt/poweroff/reboot manpage:
Quote:

If halt or reboot is called when the system is not in runlevel 0 or 6, in other words when it's running normally, shutdown will be invoked instead.
Are you still using a sysvinit prior to version 2.74? Those older version did not call shutdown.

init 0 also produces a clean shutdown.

BTW: Shouting doesn't make it so!

lupusarcanus 12-15-2010 07:17 AM

What a fantastic thread!


All times are GMT -5. The time now is 08:26 AM.