I want to execute a simple command just before the computer shuts down (timing is not essential).
For startup I can use /etc/rc.local - is there something similar for shutdown?
Note that I would still like to use the integrated shutdown button from menu; i.e. I don't want to use a custom script everytime I shutdown via terminal - it needs to be automatical.
How are you, good afternoon, I do not speak and I do not write in English, and I'm iniciandome in unix / linux on my own, I am using the google translator, my question is this, know what are the shutdown command to change user State:
# shutdown -y -g0 -i0 (completely off my system)
# shutdown -y -i1 (switch to single-user state)
but when I switch to another state like 2 or 3 or 4 or 5 can not
Using Remote Desktop (RDP/Terminal Services), I can't select Shutdown/Reboot from the Windows XP start menu, so I generally have to open a terminal and enter shutdown -s -t 0 to initiate an immediate shutdown.
But, for a new system, I have added a non-administrative user to the Remote Desktop Users group, and when I try to issue a shutdown command as that user, the command returns the following e
When I try to shutdown or reboot from the system menu in Fedora 12, I am returned to the logon prompt. I am able to shutdown and reboot from a terminal window by issuing the shutdown command as the root user.:(
Any ideas?
Thanks for your help.
DoubleG
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 computer is Lenovo T400 and OS is Ubuntu 12.04
Note:
I am talking about two options to the command shutdown.
As the title says: when I click Shutdown from the menu it logs off. When I click shutdown from the log-in menu it does nothing. I'm using a fresh install of Ubuntu 11.10. I can force it to shutdown by the command below, but I don't want to keep typing that whenever I want to shutdown my laptop.
sudo shutdown -h now
So it's probably processes which arn't closing.
When Shutdown my ubuntu 11.10 using graphical user interface way it freeze with shutdown screen I give "sudo shutdown now" command in terminal but the screen freeze with the message
*Disabling powe rmanagement...... Then I give "sudo poweroff" command
this time system freeze with shutdown screen
What is the Actual Problem ?
Hi,
I'm using Mythbuntu 12.04 (although I had the same issue with 11.10 which is why I did a fresh install of 12.04 with db export/import). I have set it up with mythwelcome to shutdown when idle and start up for recordings according to:
http://http://www.mythtv.org/wiki/ACPI_Wakeup
For the most part it all works well. However, occassionally the system hangs when shutting down.
When I send a reboot command(or shutdown) command to a Linux machine does it keeps that messages at somewhere and can I query it. I.e.