Questions tagged [shutdown]

a command to turn off or reboot the system

114 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8
votes
1answer
547 views

Battery drains while powered off after upgrade to kernel 4.13

After upgrading to kernel 4.13, the battery of my laptop started to drain while powered off (about 30% in one day). This didn't happen if I booted the laptop from kernel 4.12 or Windows 8.1, so the ...
6
votes
1answer
1k 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 ...
5
votes
1answer
322 views

How can a systemd service detect that system is going to power off?

I have a systemd service controlling some hardware, let's take lamps as a good example. It is OK to restart the service, or reboot the PC, because it is safe that the lamps are left switched on for ...
5
votes
0answers
5k 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. ...
5
votes
1answer
2k 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
0answers
237 views

ZFS (on Linux) swap error upon shutdown

I have installed Debian stretch on ZFS (including the root filesystem) and have made a volume on the root pool which I am using as swap. Everything is working fine, except that I am seeing the ...
4
votes
0answers
233 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 ...
4
votes
1answer
371 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
695 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
0answers
381 views

Enable tty console login while “A stop job is running” (stop running forever, preventing shutdown)

A message like this one is often shown on shutdown: "A stop job is running ..." (nfs mount) This apparently even happens when the NFS server did not go away. But even if the connection to the NFS ...
3
votes
2answers
366 views

Is there a command to see if there was a thermal cut off in my laptop?

Scenario: The computer shuts off randomly. Sometimes, it shuts off by, first the monitor goes off, and some seconds later the whole computer turns off. The current "sensors" reading is: $sensors ...
3
votes
0answers
146 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
1answer
230 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
0answers
1k 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 ...
3
votes
0answers
159 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 Ctrl+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. I ...
2
votes
0answers
53 views

How to skip 'Please remove the installation medium then press enter'

I have a time-consuming program running in Lubuntu 18.04 Live. It will take around one day to finish. After the program finishes the computer shuts down. But since I am running Lubuntu Live, the ...
2
votes
0answers
89 views

Linux freezes after reboot/shutdown

I'm running a Kali Linux with KDE Plasma and encountered an issue where I cannot logout/reboot or shutdown. I tried adding acpi=force, apm=power_off' and reboot=bios to the GRUB_CMDLINE_LINUX_DEFAULT,...
2
votes
0answers
106 views

Is it possible to declare a regulator in the device tree that can power down the system

If I have, for example, a fixed-regulator declared in my device tree, how can I request Linux to call the disable function after shutting down? Note, I use a custom regulator driver (not fixed-...
2
votes
0answers
494 views

Linux gets stuck in shutdown process

I decided to take my problem to this site, as I have the following issue with Ubuntu 17.03, 16.04 AND Debian 8 stable... I own an Asus Notebook that had several distributions installed... I noticed ...
2
votes
1answer
185 views

Unix server constantly rebooting

I have a Unix server that has started rebooting every few minutes. I tried to trace the source of the problem by logging the process tree at the time reboot is called, as described by this question's ...
2
votes
0answers
636 views

How to restart a systemd-nspawn container after the guest issues a reboot command?

I have systemd-nspawn containers which are enabled and start upon the boot of the host server. The problem I have is that they do not understand the reboot command issued on the guest: the container ...
2
votes
0answers
195 views

Can I disable shutdown if pacman is running?

During my last arch linux update using pacman -Syu I shut down my laptop, as I had forgotten that the update was running in the background and installing the packages. Afterwards I could not start ...
2
votes
1answer
532 views

Halting via systemd service

Short version: How can I get a systemd controlled service to trigger an immediate shutdown? I have a daemon empowered to do arbitrary things in response to certain events via a (fork/exec'd) shell ...
2
votes
0answers
179 views

How to force script execution before shutdown or reboot is executed? RHEL 7

I have this service enabled by systemctl: [Unit] Description=The Oracle Database Service After=syslog.target network.target Wants=network.target [Service] LimitMEMLOCK=infinity LimitNOFILE=65535 ...
2
votes
1answer
681 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
2answers
607 views

Gentoo portage continue after shutdown

Can I rerun my command to install KDE full after a shutdown and will it continue? I'm installing KDE and it takes a while now. I'm on my laptop and it's pretty late here. There are many packages to ...
2
votes
0answers
1k 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 poweroff/...
2
votes
0answers
704 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
1answer
743 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 for ...
2
votes
0answers
1k 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
611 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 (...
2
votes
1answer
725 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 ...
1
vote
0answers
73 views

Fedora 30 : Laptop won't shutdown/reboot or hibernate

I've installed f30and I've come across this issue : when I power on my laptop and close the lid, the system gets hibernated as I told it to do. When I open the lid the system is up and running again ...
1
vote
0answers
29 views

reboot causes device to shutdown but doesn't start again for many hours after

I am using a BeagleBone running Debian. I have a cron entry in /etc/crontab which tells the device to reboot at 03:01 every night as follows 00 03 * * * root /sbin/shutdown -r +1 >> /...
1
vote
0answers
17 views

Automatically shutdown after recovering from suspend

Environment: OS: Linux Mint 19.2 Laptop: XPS13 9360 with the latest BIOS Problem: I cannot understand why but if I close the lib, my laptop will go suspend and when I reopen the lib, it will ...
1
vote
1answer
30 views

how to properly halt linux system when exiting init

In Qemu, I'm starting a linux VM where init process (PID 1) is bash. It is working : I can use bash after boot. But when I quit bash with a exit or CTRL+D I got a kernel panic. Kernel panic - not ...
1
vote
1answer
178 views

System freeze on reboot/shutdown

My laptop is an Acer predator helios 300 with intel i7-7700hq and an NVIDIA GTX 1050ti. It had a 128GB NVME SSD and 1TB hard disk. I had dual boot on it with fedora 29 installed on the SSD and Mint ...
1
vote
0answers
17 views

How to start system shutdown or poweroff by hardware interrupt

I have a small headless embedded Linux box (NXP i.MX6, with userspace based on Debian, but am interested in more general solution). It has no HID input, no desktop stuff, just a serial console and a ...
1
vote
0answers
41 views

Debian Stretch network boot (nfs) shutdown fails because of network service

with Debian Jessie my Raspberry Pi was working pretty well with booting from NAS. With Stretch there is an issue with shutdown (and reboot), because Stretch seems to disable the network interfaces too ...
1
vote
0answers
141 views

kali rolling install on External HDD problem

I encountered some problems after installing kalil inux to the external hard drive. I installed kali linux to a mobile hard drive.(Mobile hard drive is USB conversion SATA HDD ) Hard disk partition ...
1
vote
1answer
166 views

Can't shutdown the laptop with dual boot Ubuntu

On a three day old Ideapad 330-15lch with Ubuntu 18.04 in a dual boot (vs Windows 10), when clicking on power off or restart, the Lenovo laptop freezes. Keyboard and mouse do not react, it does not ...
1
vote
0answers
233 views

Linux freeze on shutdown problem

I'm trying to throubleshoot an annoying shutdown problem with my Sun Ultra 24 Workstation running under Devuan ASCII. groucho@devuan:~$ inxi -b System: Host: devuan Kernel: 4.9.0-8-amd64 x86_64 (...
1
vote
0answers
41 views

Unable to shutdown workstation

I've an issue with a workstation running CentOS 7.4. I'm unable to shut it down. Whatever the methode (GUI, command poweroff, /sbin/shutdown now) I use, it automatically reboots. I don't find ...
1
vote
1answer
44 views

How do I turn off a group of computers using the shutdown command?

Someone told me that it's possible to group machines you want to shutdown together, and that you can turn them off using the standard shutdown command in bash. How would one go about setting this ...
1
vote
0answers
382 views

GlusterFS graceful reboot of brick

TL;DR What is the best/simplest way to reboot a gluster node (containing a replicated brick) in such a way that it doesn't impact (i.e. freeze) the remaining cluster? Longer story: I'm configuring ...
1
vote
0answers
42 views

Delayed shutdown re-executes on restart

I am trying to allow my system (OSMC on RPi3) to run for only 90 minutes in day and then shutdown (to restrict my kids). I used shutdown -P 90 on rc.local. But if system is shutdown before 90 minutes ...
1
vote
1answer
868 views

“shutdown -r” works but “reboot” does not

Fresh install of Centos 7 KDE kernel: 3.10.0-693.21.1.el7.x86_64 After I do a yum update to update all of the packages, reboot no longer works. I tried to track the problem with no avail. For fun, I ...
1
vote
0answers
508 views

LXC does not stop, Failed to connect to bus

I just created a new LXC with the following command: lxc-create -n ${NAME} -t download I choosed debian, stretch and amd64 as characteristics. I'm using the LXC in unprivileged mode with UID/GID ...
1
vote
0answers
122 views

How to diagnose hung on shutdown

I've had some weird behavior on my System recently, being stuck at "Reached target Shutdown" but not shutting off because of a hung task, usually kworker, but only sometimes, at other times it will ...