The shutdown tag has no wiki summary.
0
votes
0answers
26 views
Xfce: Upgrade from Squeeze to Wheezy broke xfce's user policies
While using Debian squeeze, I was able to allow a user shutdown in xfce by adding users to the powerdev group (see here: xfce: Allow shutdown for non-root users).
Now, I upgraded my system to Debian ...
4
votes
1answer
48 views
Automatic shutdown after startup
I'm a new newbie Linux Mint user but I have a lot of desire to learn. I played a little with the shutdown command typing:
sudo shutdown +20
and then:
sudo shutdown -c
I then manually hibernate ...
1
vote
0answers
68 views
Fedora 18 doesn't shutdown , restart or sleep / can not unmount all file systems
When I do something (whatever) that results in a shut down, restart or sleep (for example usual shut down or restart, closing the lid, etc.), fedora 18 (x86_64 , GNOME desktop) comes up with an error ...
3
votes
1answer
52 views
Shutting the computer down from Openbox
I've recently installed Openbox,and read a guide that said the PC should be shut down via this command:
gdm-control --shutdown && openbox --exit
However, it seems a bit counter intuitive. ...
1
vote
2answers
101 views
How to simulate unplugged network cable or down server?
I have simulated network latency with netem and It's great. Now I want to simulate unplugged network cable or when server goes down. I need this to make testing of my application easier and I couldn't ...
1
vote
1answer
81 views
Diagnose unplanned shutdowns
I have a problem with a server that is shutting down for some unknown reason. I check the logs each time it happens and cannot find anything of particular interest which would suggest why its going ...
11
votes
1answer
340 views
How to prevent shutdown when an SSH user is logged in?
I'm administrating a networked environment and I had an interesting situation arise yesterday. When a host is required to shutdown by a regular user, it refuses to do so if other users are logged in ...
17
votes
3answers
2k 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
102 views
Why was -F removed from /sbin/shutdown?
I used to be able to run /sbin/shutdown -r -F now but in recent Ubuntu and Fedora releases there is no -F option and if I want to force an fsck I need to do touch /forcefsck; /sbin/shutdown -r now. ...
2
votes
1answer
82 views
How can I setup a system immune to abrupt poweroffs?
I have a system that boots from a solid state disk. How can I make it immune to improper shutdowns? I can also switch to a distribution having this feature. I can choose between Ubuntu, Redhat, and ...
2
votes
3answers
157 views
Ensure that loopback root and host are unmounted on shutdown
I'm trying to setup a Linux system that runs from an LVM-formatted image file. After some tinkering with the initramfs and boot options I managed to make it up and running by mounting the host file ...
3
votes
0answers
312 views
What's the right way to execute a script before system shutdown (systemd)?
I wrote a script that suspend 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 booted next time, virtualbox tells me the ...
3
votes
2answers
213 views
Is running “sudo sync” and removing power dangerous for my system?
I run an Ubuntu system, and it sometimes takes a while to shut down. Apparently, GNU/Linux attempts to, in a nutshell, stop all running processes, flush the filesystem journal, and then cut off the ...
2
votes
2answers
330 views
xfce: Allow shutdown for non-root users
How do I allow shutdown for normal users in xfce?
Currently, the log-out/restart/shutdown box only allows the log-out option, and having to switch to the console, logging in as root and shutting down ...
2
votes
1answer
102 views
write pc uptime in a file in shutdown
I need to log PC uptime. How I can do this?
I use uptime for this and I will when ubuntu is shutdown write this command output in a file.
3
votes
1answer
152 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 ...
11
votes
3answers
283 views
Eject CD on shutdown
OK, so I have a simple problem: I have a live CD, and I want the CD to eject when the computer is rebooted or halted.
Executing /usr/bin/eject -m makes the CD eject just fine... trouble is, as you ...
3
votes
3answers
113 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 ...
4
votes
1answer
316 views
Using a APC Smart-UPS to shutdown a Ubuntu Server Cluster
I'm currently in the process of designing a solution to shutdown a two Ubuntu Server cluster that uses heartbeat and DRBD to replicate storage and offer a NFS share to some IP cameras.
We want to ...
12
votes
2answers
2k views
Execute a command before shutdown
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 ...
1
vote
2answers
575 views
My computer won't shut off normally
Every time I try to shut down my iMac it just stays on that loading circle forever. The only way I can get it to shut down is by holding down the power button. I checked the system logs (below) and I ...
1
vote
0answers
103 views
A Reboot() command with failover
I'm implementing a Reboot() call in my application. It's an embedded application, so no console, keyboard or power switch. The Reboot() must eventually restart the system no matter what. Ideally, I ...
3
votes
2answers
180 views
Upstart: How to run a “stop” before stopping other services?
I recently found out about the upstart "service starter" that Ubuntu is using and that is (apparently) the future to start/stop jobs in Linux.
It's pretty new to me (I was used to the old SysV system ...
6
votes
1answer
164 views
How do DE's call ACPI functions?
Okay, first off, this is not a problem I am facing, but I would like to understand this better.
If I wish to shutdown / reboot my machine from the command line I need to call:
$ sudo poweroff
$ sudo ...
6
votes
3answers
641 views
Shutdown from login prompt in tty
Suppose I boot a Linux machine without GUI. When it displays a tty login prompt, can I shutdown the machine with a keyboard sequence?
Of course I could type in my username and password and then sudo ...
3
votes
1answer
350 views
How to check will my computer is going to reboot(or 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. I will send a reboot command and after that I will run another ...
4
votes
2answers
392 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 ...
3
votes
2answers
1k 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 ...
8
votes
4answers
314 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
339 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
546 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
598 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 ...
5
votes
3answers
2k 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
121 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
1k 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
240 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 ...
3
votes
1answer
533 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
178 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 ...
4
votes
1answer
1k 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
623 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
437 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
61 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
639 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 ...
1
vote
1answer
550 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
717 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 ...
1
vote
3answers
552 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
134 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
214 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. ...
19
votes
2answers
874 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 ...
2
votes
2answers
683 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 ...



