a command to turn off or reboot the system

learn more… | top users | synonyms

4
votes
2answers
933 views

Gnome: how to close all applications?

I've configured the Debian system on my netbook to shut down whenever the battery runs too low. Problem is, shutting down kills all running applications without giving them any chance to save any ...
7
votes
2answers
5k views

Is halt the same as “shutdown -H” and poweroff the same as “shutdown -P”?

I haven't found a clear answer to the differences between the two options to the command shutdown. Is halt the same as shutdown -H and poweroff the same as shutdown -P?
10
votes
4answers
527 views

How do I shutdown, reboot and logout the system from the command-line?

I would like to do that using the command-line, because sometimes my computer freezes and I need to force a shutdown (I know it's not good to the hardware). And: What is the difference between Halt ...
2
votes
1answer
567 views

What are the commands to logout and shutdown with a session manager?

I decided to write my own DE using these instructions here it worked and I can login however I didn't use a panel so I don't have a logout button or a session manager. I've decided to write my own ...
4
votes
3answers
1k views

Can it harm if I shutdown without closing applications?

Can it hurt if I shut down my machine without closing all programs? I normally close all of them by hand, but have heard from others that this is really not necessary anymore (i.e. Linux will take ...
2
votes
1answer
1k views

Message after sudden shutdown

After the computer shuts down suddenly unexpectedly without notification, is there a way to know the reason (read messages) the next time when I boot? My computer frequently shuts down, and I don't ...
8
votes
3answers
6k views

How to run a script with systemd right before shutdown?

What do I need to put in the [install] section, so that systemd runs /home/me/so.pl right before shutdown and also before /proc/self/net/dev gets destroyed? [Unit] Description=Log Traffic [Service] ...
2
votes
2answers
132 views

debian dead when copy over 1GB

I have a Debian Squeeze system with an AMD64 processor. When I try copy over 1 GB, the computer dies (no reboot, completely down), and the logs don't contain anything useful. The temperature of the ...
1
vote
1answer
3k views

Linux Mint does not shut down

Sometimes (very rarely actually) I have a problem that when I try to shut down my desktop, it will freeze with the following screen and I can only shut it down by pressing the power button for 8 ...
4
votes
2answers
541 views

List of script( location)s that get run automatically, and when?

Does anybody know (of a resource listing) what scripts are run automatically, and when, from the moment I startup the computer until it's shutdown again. I know several places where I can add scripts ...
4
votes
5answers
2k views

How to disable shutdown so that an important process cannot be interrupted?

What is the simplest way to disable or temporarily suspend reboot/shutdown when an important process is running? The process takes too long to finish and cannot be paused/resumed so I like to avoid ...
3
votes
1answer
272 views

Schedule halt using ConsoleKit and Dbus

I have been playing with Dbus (versions 1.4.0, in Ubuntu 10.10 and 1.4.14) and ConsoleKit (versions 0.4.1 and 0.4.5) to reboot or halt my computer without being a superuser. Everything works fine in ...
5
votes
1answer
2k views

Execute Script automatically at shutdown on Fedora 15/16

With fedora 15 or 16, I don't find the directory for execute a shell script automaticaly at shutdown...
7
votes
1answer
942 views

How to shutdown with consolekit without sysvinit (but with systemd)

I have systemd (and no sysvinit) installed on a Arch Linux box. However, I cannot shutdown/reboot with consolekit (dbus interface). # systemctl {shutdown,reboot} work just fine, so I guess it's ...
3
votes
3answers
1k views

Shutting down from X without a desktop environment

I have recently given up my Desktop Environment and am now only using a Window Manager (i3) and X. It all works very well and I do not miss much. Except for one thing: the shutdown button. I can now ...
2
votes
1answer
66 views

Problematic booting process

About a month ago I installed Lubuntu 11.10. Since that time there is a problem with booting and shutting down. Booting is endless. This screen never disappears, so I have to manually press the ...
1
vote
1answer
705 views

Fedora 16 install does not fully shutdown

I did a fresh install (not upgrade) of Fedora 16 shortly after it came out. However I've never been able to have it fully shutdown. When you select it I can see it try to shutdown, but it doesn't ...
2
votes
1answer
731 views

Restart does not shutdown first on Debian Squeeze

I installed Debian Squeeze from the live DVD. Going to System->Shutdown->Restart does not shutdown the computer in the usual way where the BIOS screen is seen before login. Instead it simply restarts ...
1
vote
2answers
2k views

Can a service script put inside init.d be called at startup and shutdown?

I'm running Red Hat 5.1. I have a script called sysinit that I added as a service using chkconfig --add sysinit. I have the following set in the file: #chkconfig 4 01 01 This creates one symlink ...
2
votes
3answers
1k views

How to shut down or reboot a machine? [on different OSes]

What parameters do the "shutdown" command [or other command?] NEED, TO BE SURE that the machine reboots or shuts down for SURE? e.x.: version for Linux: # cat /etc/SuSE-release SUSE Linux ...
2
votes
1answer
188 views

Why can I still log in via SSH (PAM Auth) while `shutdown -k` is active?

Pretty straight-forward. Does SSH ignore the nologin file created by shutdown -k TIME? Using PAM Auth to sync password database to users; if that makes a difference.
4
votes
1answer
298 views

What reasons would prevent a machine restart from proceeding?

I am in the process of testing a fanless, atom based PC for use in an embedded application. I am running Voyage Linux version 0.7.5 on the machine. This distribution is derived from Debian Lenny. ...
23
votes
2answers
1k views

How does the power button shut the computer down without root permission?

When I try to shutdown the computer from a command line or terminal I must have root privileges: amy@amy:~$ shutdown now shutdown: Need to be root and amy@amy:~$ halt halt: Need to be root but ...
6
votes
3answers
2k views

Can I allow a non-root user to log in when /etc/nologin exists?

Suppose a non-root user with sudo privileges executes a delayed shutdown (shutdown +10 or whatever) and logs out. Then, before the shutdown occurs, he wants to log back in and cancel the shutdown. The ...
5
votes
1answer
675 views

Is there a way to control the delay before shutdown on low battery?

Is there any way to configure shutdown on critically low battery to give me a bit of time before actually shutting down? I've set GNOME Power Manager to shutdown on low battery (hibernating does not ...
6
votes
1answer
1k views

How to find out what turned off the computer?

Yesterday, after getting back home I found out my computer is turned off. Since it appeared it was cold shutdown (a lot of disk repairs were shown during boot up) I am wondering what was the cause. ...
2
votes
0answers
128 views

How can I prevent Control+Alt+D from logging me out (of Gnome 2.22 on Debian 5)?

I was using Emacs, and typed Control+Alt+D in order to run Emacs' "down-list" command. I was dismayed to see, however, that I was instantly logged out; I assume this is some Gnome keyboard shortcut. ...
9
votes
3answers
2k views

How can I set that only root + a given user can shut down my pc?

If I'm using Ubuntu 11.04, how can I configure it such that that only two users can shut down/suspend/hibernate my PC: the root user and one regular user?
12
votes
3answers
589 views

Why do we need the reboot function in different binaries?

Why do we need the reboot function in different binaries? shutdown -r and reboot Or do they differ in something?
5
votes
1answer
542 views

Does `shutdown -P now` safely unmount a USB drive mounted to `/dev/sdb1`?

I typically unmount my USB drive (using umount) from /dev/sdb1 before I shutdown my computer but if I shut it down using shutdown -P now and then restart it, the drive is no longer mounted. Is this ...
0
votes
1answer
94 views

Shutdown screen taking too long to pop up in Ubuntu 8.04

I am using Ubuntu 8.04, and it was working fine until a few days ago, the pop screen for ShutDown started taking too long to come(about 3 mins) and in the mean time computer freezes. However, after ...
4
votes
3answers
445 views

Do I need to halt in order to really turn power off?

I tried shutdown -f now, thinking it will do a full power off sequence. Instead, it ends with *Checking battery state... and just hangs there. Should I add -h switch to fully take power off, ...
24
votes
6answers
43k views

How to find out from the logs what caused system shutdown?

E.g. I'm seeing this in /var/log/messages: Mar 01 23:12:34 hostname shutdown: shutting down for system halt Is there a way to find out what caused the shutdown? E.g. was it run from console, or ...
35
votes
3answers
14k views

What is the difference between Halt and Shutdown commands?

What is the difference between the halt and shutdown commands?
3
votes
1answer
271 views

Can't shutdown mandriva 2010.2

I can't seem to shutdown my machine from mandriva,I have to restart to shut it down from GRUB it says "System Halted" and just freezes there I'm using the x86_64 GNOME version I've already asked on ...
12
votes
2answers
6k views

Is it possible to stop a shutdown command?

Assuming you've just entered the command shutdown -h now (or something equivalent), is there realistically anything you can do (if you're quick enough) to prevent the machine shutting down?
-1
votes
1answer
306 views

Is 'Shut down computer when finished' during Avidemux encoding stage useful?

I get the option to Shut down computer when finished during encoding stage of Avidemux. Why would I want to do that?
10
votes
5answers
3k views

How to shut down the computer after a task has been completed?

I usually start a download before I go to school. Which command should I use to automatically make the necessary saves and turn off the computer after a particular task has been completed? (Say, ...
5
votes
1answer
951 views

How to get a persistent “history”-file even after a non-clean shutdown?

I am trying Ubuntu Server 10.10 in VirtualBox. I like that the commands I run is saved in a "history"-file that can be shown with the history command. But if I just turn off VirtualBox without the ...
10
votes
5answers
11k views

Stop program running at startup in Linux

How do I stop a program running at startup in Linux. I want to remove some apps from startup to allow them to be managed by supervisord e.g apache2
8
votes
5answers
2k views

On Linux, is there an rc.local equivalent for shutdown?

I've got a few commands that I run in rc.local so they are run last in the startup sequence. I would like to know if there is a similar facility for undoing the results of those commands at shutdown, ...