a command to turn off or reboot the system

learn more… | top users | synonyms

4
votes
1answer
91 views

System does not poweroff - how to diagnose

After upgrading to debian jessie my dated desktop system no longer powers off reliably (/sbin/poweroff - via systemctl on tty1). Instead, it shuts down, pauses and reboots and only powers off if I ...
4
votes
1answer
154 views

How to get system to shutdown when Xorg is quit?

I installed nodm, so that Debian starts Xorg and a window manager immediately after booting, without requesting any password and without a login. How can I similarly setup Debian to shutdown the ...
4
votes
1answer
4k views

Find last shutdown time

This is the command I am using: last -x|grep shutdown | head -1 but it's giving me the duration with +2 hours: shutdown system down 3.14-1-amd64 Mon Jul 21 08:43 - 22:19 (13:36) the last ...
4
votes
1answer
719 views

How to reboot/shut down gracefully in Awesome WM?

My current configuration uses kdesu shutdown -[rh] now to reboot/shut down. The entire shutdown procedure takes about 1-2 seconds. But after every boot Firefox says it was shut down prematurely, ...
4
votes
1answer
418 views

Execute code on shutdown on Fedora 19

I need to catch any OS shut down and execute some actions before letting the OS be shutted down. I'm using Fedora 19 and C++. I'm able to catch a shutdown signal given by the console with the ...
3
votes
1answer
2k views

“A stop job is running…” on shutdown

Almost every time when I'm shutting down or rebooting the system I get the following message before the system actually shuts down: A stop job is running for Session 1 of user xy It waits for ...
3
votes
1answer
120 views

linux systemd intercept shutdown if service is active

I've created a little update/upgrade program for my arch-based linux. Instead of using a cronjob I'm using systemd and created following files: in /etc/systemd/system: uupgrades.target & ...
3
votes
1answer
318 views

Output shutdown messages to multiple consoles

I have configured my system to direct console output on boot to serial and vga using kernel parameters. Serial is the last argument in the kernel parameters and will be the default used for ...
2
votes
1answer
515 views

Umount network drives with systemd before shutdown

My shutdown takes quite a long time (I'm on Debian 8.1) and I found out that it can be fixed by unmounting the network drive before shutting down the system. Apparently the network gets disconnected ...
2
votes
1answer
170 views

How can I investigate what other users are currently logged in?

Since the last few days I get an error message when I try to shut my laptop down: System policy prevents stopping the system when other users are logged in This error message includes a prompt ...
1
vote
1answer
53 views

Sudden shutdown happens only when I have PhpStorm opened

I've had this reoccuring sudden shutdown issue happening recently, and it always happens when I have PhpStorm opened, I'm not sure if it's related, but it still seems random, meaning that sometimes I ...
1
vote
1answer
177 views

Script to run at shutdown

I'm trying to create the equivalent to rc.local that runs last during startup, but to run first during shutdown. I basically copy/pasted /etc/init.d/rc.local as the base template, and updated the ...
1
vote
1answer
181 views

How to setup boot scripts to save orphan inodes after improper shutdown?

after abnormal shutdown in dmesg I have [ 16.107445] EXT4-fs (dm-1): INFO: recovery required on readonly filesystem [ 16.107450] EXT4-fs (dm-1): write access will be enabled during recovery [ ...
1
vote
1answer
230 views

Why does my script does not run in runlevel 0?

I made a script with following LSB header #! /bin/sh ### BEGIN INIT INFO # Provides: updateservice # Required-Start: $local_fs $time $network $named $syslog # Required-Stop: $local_fs ...
0
votes
1answer
66 views

Does a Linux brand cause a Dell Latitude D620 notebook to hang during reboot process?

Recently, I installed Linux Trisquel 6 on a Dell Latitude D620 notebook (dual core cpu, 2GB DDR and 60GB hard drive), where previously Windows XP was installed. But Trisquel doesn't seem to support ...
0
votes
1answer
42 views

Linux: System reboots instead of power off or shutdown on motherboard intel DB85FL

The question is: Whenever I ask the system to shutdown to power off, it goes to power off mode for like 2-3 seconds then it powers on automatically again without my intervention. I did not go manually ...
0
votes
1answer
241 views

How do i force shut down on a computer without on off button

I have a chromebook, I just installed Uberstudent(based on ubuntu 14.04) on it and when I tried to reboot it after installing, it doesn't shut down. It just says SQUASHFS error: Unable to read ...
3
votes
0answers
103 views

Bad/strange USB device issue: failed to shutdown/restart

On a fresh Arch Linux installation with Intel i7 processor and an Nvidia graphics card, I noticed during boot log messages related to a usb device filled the screen before it reached the graphical ...
3
votes
0answers
140 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. ...
2
votes
0answers
140 views

systemd: running a script on shutdown after filesystems are mounted read-only

Is there a way to run a script on shutdown, after the file system is remounted as read-only? I've a raspberry pi connected to a wireless socket, which I can control via a sender and a script. I want ...
2
votes
0answers
67 views

How do I make a service stop all at once?

I used the script here to create a service to start and stop a Minecraft server on boot and shutdown. The script basically starts the server jar file in a GNU screen (it also does backups and updates ...
2
votes
0answers
243 views

Debian wheezy - hanging on shutdown

My debian system hangs when I'm trying to shutdown/reboot. It hangs on: kvm: exiting hardware virtualization (infinitely blinking white cursor) I've tried to shutdown by gui and by ...
2
votes
0answers
215 views

Properly power down SSD during shutdown

I recently got a Samsung SSD. I have debian wheezy installed on it. I carry it around in a USB enclosure and boot both my work and home computers from it. How can I ensure that the system properly ...
2
votes
0answers
325 views

Shutdown doesn't work

I've installed the dwm window manager on Linux Mint 15, configured it and now shutdown doesn't work. I typed shutdown -P now in terminal. dwm closed successfully and now I'm seeing a black screen ...
2
votes
0answers
1k 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 ...
2
votes
0answers
672 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
0answers
531 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 ...
1
vote
0answers
16 views

Since Using Starch I Cannot Turn Off Computer

Since upgrading to starch, when I click the button in Gnome to shutdown the computer, the screen turns off and the computer stays running (i.e. I can hear it). It used to be that the normal behaviour ...
1
vote
0answers
416 views

Ubuntu 15.10 gets stuck at shutdown

Whenever I shut my computer down just stays stuck at the shutdown screen loading bar and it turns off afters hours of just being there loading, new to Linux I need a little hand. I've read that ...
1
vote
0answers
1k views

Failed unmounting /home during shutdown arch linux

I've installed arch on my system multiple times and everything has worked fine, but since last installation I've been seeing messages : Failed unmounting /home. and Failed unmounting /run/user/1000. ...
1
vote
0answers
62 views

Graceful shutdown with option to save files or cancel

How do I shutdown a desktop session gracefully from the command line without root, giving programs the option to ask the user to save files or cancel the shutdown? I know shutdown, halt, and other ...
1
vote
0answers
366 views

Linux Mint 17.1 shutdown option doesn't work

Sometimes when I use the shutdown option in cinnamon the system closes some of the running programs and then just sits on the desktop until I tell it to shutdown again. The shutdown and poweroff ...
1
vote
0answers
777 views

system won't poweroff, restarts with :“Synchronizing SCSI cache”

Running Debian testing, after a system upgrade a while back my machine started to refuse to power down. It hangs with: Synchronizing SCSI cache Waits a few seconds, and then reboots itself. It ...
1
vote
0answers
769 views

RTC is not saving time after hwclock

So I'm having quite a bit of trouble trying to get my system to set the hardware clock's time. Here is what I did just now, everything has worked, right? The first and last command seem to indicate ...
1
vote
0answers
158 views

Triggering a server to shutdown in receiving a signal via serial port (RS232)

I'm a fresh graduate (Electronics & Commn) and want to start my career in linux administration. I'm using a Ubunutu 14.04 server machine for R&D (with ups). Now my scenario is whenever main ...
1
vote
0answers
344 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 ...
1
vote
0answers
942 views

Why does my server not shutdown properly?

When I run $ reboot on my embedded FreeNAS 0.7 (FreeBSD 7.2) it does start the shut down procedure but seemingly hangs. I have registered a command to start a service script which is executed on ...
0
votes
0answers
9 views

Kernel-space call orderly_poweroff not work - wait for completion

[kernel ver. 4.1] My big problem: my kernel-space driver call orderly_poweroff(true), but after that there is no reaction form Linux side (OS will still work). After a while, I received log form ...
0
votes
0answers
47 views

lenovo z-5170 hangs at Plymouth screen during shutdown or restart(elementary os)

When shutting down or restarting the computers hangs and I need to click on the power button. The message on the screen is: init: wait-for-state (plymouth-shoutdownlightdm) main proccess (2050) ...
0
votes
0answers
41 views

GTK Warning ** drawing failure

Currently On Debian Stretch: Relatively new to Linux and to this stack exchange any further information you may require i will update as requested. Thank you... Recently i have been struggling to ...
0
votes
0answers
75 views

CentOS 7 NUT UPS Specify Shutdown

I've recently put my CentOS 7 server onto an Eaton 5E UPS and I am hoping to specify the Shutdown conditions. I've installed nut and done some basic configurations as suggested by ...
0
votes
0answers
34 views

strange shutdown behaviour

Usually, when I plug in stuff (mostly hdmi cable) the laptop fails to shutdown. What happens is the following: I unplug everything, I try to shutdown from gui (or terminal), but at the very end of the ...
0
votes
0answers
33 views

Lightdm - call script on shutdown

I configured lightdm to call the following cleanup-script. Here the corresponding line in the lightdm.conf: ... session-cleanup-script=/usr/local/bin/call.logout.sh ... Here the script, which is ...
0
votes
0answers
116 views

Internet connection only through VPN after forced shut down

When on campus, I can only access the internet via the university's VPN. The connection is established by the Cisco Annyconnect Client (version 4.1). I also set the proxy in the browser. All according ...
0
votes
0answers
356 views

Ubuntu 15.04 Shutdown problem

When I Shutdown my Ubuntu 15.04 , sometimes instead of shutting down it keeps on showing animation of shutting down. I have installed gnome on my system.
0
votes
0answers
429 views

Suspend option disappear from shutdown dialog on Mint 17.1 Cinnamon

Previously I have a "Suspend" option when I open shutdown dialog, not sure why (probably because I did a apt-get upgrade I found the "suspend" option has gone: Another thing is even I set my power ...
0
votes
0answers
123 views

Why doesn't Linux shutdown cleanly?

I'm running Linux Mint with LXDE on Dell Inspiron 1501. Whenever I issue poweroff command, or reboot or shutdown the computer via the graphical menus, it doesn't seem like a clean shutdown. In ...
0
votes
0answers
787 views

Fedora not shutting down

Whether I do shutdown -P now or sudo shutdown --halt now Fedora does not shutdown. It will send SIGTERM and SIGKILL as usual, but then just stops at the screen with the fedora logo. My only option is ...
0
votes
0answers
160 views

Ubuntu displays Shutdown window then turns off system

Some weeks ago, I've downloaded unetbootin both Windows and Linux versions to make a startup Ubuntu USB. I was going to use it to rescue my damaged Ubuntu partition. Tried the Linux version but didn't ...
0
votes
0answers
303 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 ...