a command to turn off or reboot the system

learn more… | top users | synonyms

3
votes
0answers
54 views

Graceful shutdown in ArchLinux

I'm trying to get a graceful shutdown/reboot in ArchLinux with GNOME Shell. Now, when I ask for shut-down, it immediately shuts down without giving open programs time to gracefully close / save open ...
8
votes
2answers
84 views

How does the system shutdown of a linux kernel work internally?

I have somehow an rough idea of how the userspace and init-system (be it classic init sysV /upstart/ systemd) work at system shutdown. (Essentially there is an order succession of "Stop!", "Please ...
0
votes
1answer
41 views

How can Window Managers shutdown the computer? [duplicate]

When logged in to a virtual shell as an unprivileged user and try to shutdown, reboot, init 0 or init 6 don't work. But if you're running a desktop environment, you can easily select its shutdown ...
1
vote
1answer
79 views

Why is “Asking all remaining processes to terminate” failing during shutdown?

I installed Debian 7. Sometimes when I quick X and type sudo shutdown -h now, it says, Asking all remaining processes to terminate, then after a few seconds, it prints a long list of processes, then ...
6
votes
3answers
915 views

How to shutdown Linux at a specific datetime from terminal?

It seems I can shutdown using sudo shutdown by specifying a time or minutes. Is there a way to specify datetime for shutdown?
2
votes
1answer
70 views

How to change Power button shutdown action

I use Mageia ver 4 Linux as server, without X started and without any user login-in during normal operation. This PC has a special card for measuring and control of other devices. This card has its ...
0
votes
0answers
15 views

How do I run a command if my server wakes up from hibernate? [duplicate]

How do I get a bash command executed each time when my server wakes up from hibernate? For ex. I want to restart my XBMC on Ubuntu when my PC wakes up with $ sudo killall xbmc.bin -9 Where should ...
2
votes
0answers
135 views

Ubuntu 12.04 / Elementary OS - Shutdown Problem / Logfiles

I have new Desktop PC on which I've installed Elementary OS, based on Ubuntu 12.04 LTS. The problem: the system doesn't shut down as expected: When using the 'Shut Down' option from the main menu, or ...
0
votes
1answer
53 views

Should tmpfs be unmounted at system shutdown?

Assume I have a linux system with the following partitions mounted (beside root): proc on /proc devtmpfs on /dev devpts on /dev/pts tmpfs on /dev/shm sysfs on /sys tmpfs on /var/run tmpfs on ...
2
votes
0answers
26 views

How do I run a script just before halt using LSB headers on Raspbian

I'm building a shutdown button for my Raspberry pi, and for that I have a python script that needs to change a GPIO pin on my Raspberry Pi just before the system runs the halt script. Now Raspbian ...
10
votes
8answers
426 views

How to read the messages during power off

I'm using Lubuntu 11.10. Every time I turn off my Sony Vaio I can read FAIL in red letters. But I can not read. I tried to take a photo, but not success. Well, I was not worrying about this but ...
1
vote
1answer
199 views

Is there a shutdown/restart command for x11VNC? - Linux (Debian)

I am running Linux (Debian). I recently installed the x11VNC server on my computer. I found the command to start the server is: x11vnc -display :0 I have been searching but did not find any ...
0
votes
1answer
91 views

Bring up shutdown menu of Cinnamon via command line

How can I bring up the shutdown menu of Cinnamon via command line? Note: I don't want the user menu. This menu for switching or logging out a user is brought up via Ctrl+Alt+Del.
5
votes
3answers
181 views

Can I make the O/S drive READ ONLY and prevent metadata write back?

Sorry to ask a (probably) stupid question. I am a hardware designer struggling with provision of safe shutdown power to an embedded system. I am aware the Linux normally makes a heavy use of the ...
1
vote
2answers
58 views

An init-script does not get called on shutdown

I have set up an init-script to control the state of a VirtualBox VM: #!/bin/sh #chkconfig: 35 99 5 #description: vTiger virtual machine ### BEGIN INIT INFO # Provides: vtigervm # Required-Start: ...
1
vote
1answer
115 views

How to shutdown the computer from Openbox as a menu item?

How can I add a menu item to Openbox which launches a prompt to cancel or provide a root password, then shuts down X and the computer if the correct password was given? The question Shutting the ...
1
vote
2answers
134 views

How to shutdown the computer from SLiM when root login is disabled?

I installed the SLiM login manager on Debian Wheezy and disabled the root account's ability to login, as described in this Debian Wiki article, so sudo <command> must be used to run anything as ...
0
votes
2answers
159 views

Arch Linux slow shutdown

I'm soffering from a very slow shutdown/reboot with Arch Linux, so I followed instruction given here to enable logging. So here is the log generated during (slow) reboot that unfortunatelly I can't ...
5
votes
2answers
164 views

Is it possible to execute a script as first at shutdown/reboot on Debian?

I am currently trying to register a script (located in the /etc/init.d) in a way that makes this script being executed as the first script/programm at shutdown/reboot (change to running level 0 or 6). ...
1
vote
1answer
63 views

Shutdown log Linux UserName

Can I know who issued the shutdown command on any *nix system in a multi-user system? I want to know the name of the user who issued the particular command.
8
votes
5answers
2k 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, ...
-1
votes
2answers
92 views

What happens if I do an improper shutdown of Lubuntu 13.10? [closed]

I have Lubuntu on my 7 year old PC with 512 MB RAM and and Intel Dual Pentium Processor running at 3.00 GHz. I sometimes unplug it from the electrical mains in an emergency. Please tell me if ...
7
votes
1answer
623 views

What's the right way to execute a script before system shutdown (systemd)?

I wrote a script that suspends all my VirtualBox machines, and put a line in /etc/rc.local.shutdown, but it doesn't seem to work, su - XX -c /XX When I'm booting the next time, VirtualBox tells me ...
17
votes
6answers
28k 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 ...
12
votes
3answers
554 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?
0
votes
1answer
33 views

My mp3player freezes when I eject it

When I eject(or safely remove) or unplug my mp3player from the USB, the screen freezes and an "ok to disconnect" message remains on its screen. Then I have to reset my mp3player. However when I ...
1
vote
1answer
69 views

How to postpone shutdown with systemd?

I run a desktop computer, which typically is shut down for the nights and often also during the day, when not in use or left unattended. I usually shut it down from GUI (KDE 4.10), sometimes - from ...
30
votes
4answers
1k views

Why can't I execute shutdown when the permission is rwxr-xr-x?

I'm in /sbin and I see that shutdown has permissions rwxr-xr-x. Doesn't this mean that anyone can execute it?
3
votes
1answer
284 views

Have Sun keyboard moon key (116) not shut down my computer

On my Sun keyboard, the top-rightmost key (with a moon image, right above the keypad) shuts down my computer. I'd like it not to, as I hit it by mistake now and then. In /etc/default/keyboard, I only ...
4
votes
2answers
178 views

Changing shutdown broadcast message

Is it possible to change the default message broadcasted by shutdown to something else?
0
votes
1answer
329 views

Why does halt not turn the machine off? [duplicate]

shutdown now kills everything and then powers down the machine. halt kills everything and then... there is no step 2. It will sit, running but not doing anything, until people stop arguing over ...
1
vote
1answer
74 views

How do I power down on reboot?

I am programming for a Linux ARM device and have some situations where I need to reboot the device after a user prompt. Whenever I run reboot -f or shutdown -r now though, the system starts up with a ...
1
vote
2answers
168 views

run a script at shutdown in Debain

I am using Debain wheezy. My problem is , I am using a limited 2.5 GB net connection. My idea is simply running a script as #!/bin/bash date >> ~/mydatausage.txt ifconfig -a >> ...
5
votes
2answers
3k views

Halt and poweroff options for shutdown command

I have googled for a while, but I still haven't found a clear answer to the differences between halt and poweroff options for shutdown. So I would like to ask this question here. If it helps, my ...
0
votes
1answer
67 views

Hook shutdown script to shutting down sequnce

Is it possible to hook some script to shutting down sequence for Linux? To give you a bit more context processes of nodes of the cluster are started as processes from cluster -master. They are not ...
0
votes
1answer
785 views

Configure power button to shutdown on Debian

I use Debian and I want my power button to shutdown the PC. Currently it sleeps, when I press it. Is there any command for it to make it shutdown?
1
vote
2answers
196 views

shutdown ubuntu server after 2 days at midnight

without using a cronjob how would I have a ubuntu server shutdown after 2 days (2880 minutes) at midnight? The essence of what I want to do is this: bash shutdown -r +2880 00:00 which would tell ...
9
votes
1answer
215 views

Don't let users reboot while root's logged in

On my system users can reboot and shut down the system. From time to time I need to update software (or do anything else) and I don't want users to reboot/shutdown the system until I've finished. Is ...
0
votes
1answer
87 views

Recover from ext2 filesystem corruption

I have a TinyCore (3.6) Linux distribution on a device of mine, which uses disk-on-module or compact flash storage. The filesystem is ext2. I have a LAMP stack on this device and I'm playing with a ...
2
votes
1answer
50 views

How do I identify on my system after successful boot. weather it was crash or was it a shutdown or reboot or something else?

Depending on the restart of the system, I need to make my application taking some follow up. my system is get restarted as following: my self as system admin rebooting sudo init 6 or sudo reboot my ...
30
votes
4answers
19k views

What is the difference between reboot , init 6 and shutdown -r now?

I just want to know difference between in reboot init 6 shutdown -r now and which is the safest and the best?
2
votes
1answer
233 views

How to shut down Linux if idle for 30+ minutes?

We define "idle" based on how screen savers in Linux define it. I found this tool called "xautolock". I tested it like this: /usr/X11R6/bin/xautolock -time 1 -locker "notify-send test" I placed ...
2
votes
1answer
392 views

What's the right way to shutdown Arch Linux through dbus interface?

I'm running openbox with Arch Linux, and looks like the old console kit interface has been long gone, %> dbus-send --system --print-reply --dest=org.freedesktop.ConsoleKit ...
0
votes
1answer
273 views

My laptop shuts down every time I unplug it

I am using a Lenovo G580 with Linux Mint 14 updated. My laptop shuts off every time I unplug it as if there is no battery even when I am using the BIOS. But, It detects the battery as "84% charging" ...
1
vote
1answer
270 views

Can't Log into Fedora 19 after force shutdown

I was exploring my new fedora 19 after a crash in KDE (I don't know what I just did). I couldn't shutdown my laptop either with the graphical method or the terminal way (because the terminal refused ...
2
votes
1answer
221 views

Why won't this shutdown script work when executed by ACPID?

Based on this thread I modified my /etc/acpi/powerbtn.sh script to account for LXDE sessions: # getXuser gets the X user belonging to the display in $displaynum. # If you want the foreground X user, ...
1
vote
3answers
92 views

Is there any way to disable shutdowning remote machine?

I sometimes mistakenly shutdown the remote machine by using sudo init 0, so I wrote something like in one of my rc files: alias sudo='sudo ' if [ $SSH_CLIENT ]; then alias init 'echo Never use init ...
1
vote
0answers
288 views

PC sudden shutdown, Sensors show normal temps, Thermal event interrupts shows 1276

I'm experiencing sudden shutdowns on my Linux systems. Using Ubuntu 12.04, my kernel version is 3.5.0-37-generic #58~precise1-Ubuntu. Running a Acer M5 581t(G) with 6 gigs ram laptop. I have been ...
2
votes
1answer
277 views

Poweroff or Reboot as normal User

To run the command poweroff or reboot one needs to be super user. Is there anyway I can run this as a normal user? I just don't want to sudo and enter my password every time I reboot or power off.
1
vote
0answers
187 views

I get this shutdown prompt, then my laptop dies. What is happening?

I get a dialog box that says 'Shut down the system now', the same as if I had clicked 'quit' in the main menu. This happens seemingly randomly. If I choose 'cancel', it sometimes goes away. Other ...