a command to turn off or reboot the system

learn more… | top users | synonyms

4
votes
1answer
116 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
5k 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 ...
4
votes
1answer
170 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
826 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
460 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
130 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
387 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
213 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 ...
2
votes
1answer
858 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
188 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
90 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
234 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
267 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
30 views

Running script at startup and exiting gracefully at shutdown

I am currently running a script at startup using /etc/rc.local. The problem is that during shutdown, it does not exit gracefully. This can cause (important) data loss. My script has a SIGINT handler ...
0
votes
1answer
59 views

Ubantu slow boot and shutdown issue : how can I fix this?

Initially my boot time was really low, it used to boot in seconds and user processes were also up and ready to use within a minute, now for some reason my boot up really slow and also my system never ...
0
votes
1answer
363 views

Computer doesn't power off at shutdown/reboot (Arch)

My computer doesn't power off when I try to shutdown or reboot it, I'm forced to press the power button. At shutdown, a single _ is displayed (sometimes blinking, sometimes not). At reboot, two ...
4
votes
0answers
225 views

A stop job is running for Session c2 of user

The following message appears almost everytime I shutdown my computer A stop job is running for Session c2 of user ... (1min 30s) It waits for 1min30s then continues shutdown process. I follow this ...
3
votes
0answers
109 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
141 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
88 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
342 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
253 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
354 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
712 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
551 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
19 views

A machine running Ubuntu or Debian shutdown on reboot. What steps would you use to find what dev/driver is causing this?

Title is pretty descriptive. I have a few of the same board that shuts down on reboot but never restarts. It does this with Debian or Ubuntu (yes yes, two sides of the same coin,) but does not do it ...
1
vote
0answers
17 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
566 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
74 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
443 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
947 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
882 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
175 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
351 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
1k 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
17 views

custom bootup/shutdown message

I am using Debian. I set my own image during boot (so no boot messages are visible). When I start PC my own image is shown, then approx 15 seconds black screen is visible and after that it shows my ...
0
votes
0answers
28 views

What does system do to execute a logout?

I want to take a deep look on what system really does to execute a logout. For example, we can follow this guide to examine what system does in a boot/shutdown process. So I wonder if there are some ...
0
votes
0answers
22 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
85 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
71 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
257 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
37 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
51 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
172 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
135 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
855 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
167 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
319 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 ...