Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [shutdown]

a command to turn off or reboot the system

0
votes
1answer
673 views

Running script at shutdown and reboot to prevent chromium session loss

I'm running Ubuntu 18.04.1 and I'm trying to create a script that shuts down Chromium properly before shutting down the system so that it doesn't give me "restore session" popup after booting. I ...
2
votes
1answer
388 views

Why does systemctl halt asks for password but systemctl reboot and systemctl poweroff not?

I am using Debian 9.5. From terminal whenever I type the command systemctl halt, it will say: Authentication is required to start halt.target and it will ask for password. But I can use commands ...
0
votes
1answer
4k views

Shutdown does not power off. Why? [closed]

I am running Ubuntu 16.04 LTS and I am having problems shutting down and restarting the computer. I trigger a shutdown, the computer eventually says Reached target shutdown and halts. It does not ...
2
votes
1answer
56 views

Capture of logs in HTML and send via email?

I have created a script to shutdown Oracle database but unable to send the output of shutdown while the database shutdown completes successfully. I only receive email of the echo part but not the ...
1
vote
1answer
42 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 ...
0
votes
1answer
2k views

Unexpected shutdown with a “Power key pressed.” log

My Supermicro blade server shut itself down with the following logs. What could be the reason? (AFIK no one has touched it!) CPU usage was about 50% in the few hours before the incident. This issue ...
1
vote
0answers
295 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 ...
0
votes
0answers
25 views

Only the VirtualBox GUI close on shutdown

I found a tricky bug with the VirtualBox GUI. I always have to shutdown my computer twice when the GUI is open. I recorded a little video to show you the bug. OS: Ubuntu 18.04 LTS + cinnamon ...
3
votes
2answers
305 views

How to shut down Fedora without logging in

I have Fedora 27, and when I go away, the login screen is shown. Then I return to shut down the PC, but is not allowed to shutdown the PC from the login screen. I need to log in and then shut down. ...
3
votes
1answer
1k views

Can't properly stop SAP Hana on reboot / shutdown with systemd

We encountered the following problem in our company. We have multiple Red Hat Enterprise Linux Servers on which "SAP HANA S/4" is running. We created a systemd Service to automatically start and stop ...
0
votes
0answers
168 views

System Reboot or shutdown in terminal prompts for retry after closing inhibitors and logging out other users

I was trying to shutdown or reboot my system given as a BYOD by organization for which I work. So, far I have tried this : And as you can see, each time I get this error : User root is logged in on ...
0
votes
0answers
17 views

Kali persistence freezes after shut down [duplicate]

I decided to install Kali 2018.2 on my 16gb SanDisk cruzer with persistence. But ever since I installed it, I cannot switch off my system safely, I end up force switching off my laptop which I do not ...
1
vote
1answer
37 views

How to calculate the maximum value for shutdown -r +${MINUTES}?

I am using CentOS 7.5.1804 with GNU bash version 4.2.46(2)-release (x86_64-redhat-linux-gnu). For scheduled reboots within maintenance windows I calculate the minutes from now up to the next reboot. ...
0
votes
1answer
77 views

3 Questions about having to do a hard shutdown and reboot

When I attempt to do a soft reboot or shutdown, the display hangs and the system is unresponsive for an inordinate amount of time. I therefore have to shutdown or reboot my setup by holding the power ...
2
votes
0answers
86 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
1answer
852 views

User nobody is logged in on '???'

A transcript of today's session: x@yz:~$ shutdown now User nobody is logged in on ???. Please retry operation after closing inhibitors and logging out other users. Alternatively, ignore inhibitors ...
0
votes
0answers
653 views

Linux mint 18.1 does not shut down

I have a Linux mint 18.1. This is uname-a output. Linux workstation 4.4.0-121-generic #145-Ubuntu SMP Fri Apr 13 13:47:23 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux When I shutdown, these are the last ...
-1
votes
3answers
109 views

How to undo shutdown? [duplicate]

If Linux shuts down, but the computer stays in terminal, I can still print the sysRq help, but no longer enter commands. Is there any way to escape that and undo shutdown while circumventing the ...
0
votes
2answers
90 views

Sudden shutdown when watching videos

I used to have Ubuntu on my Dell laptop. 2 days before, it suddenly shut down after watching some Youtube videos. Then it simply and always shuts down during booting, some time after logo screen. I ...
1
vote
1answer
67 views

Are runlevels 0 and 6 a result or a transition?

The runlevels 0 and 6 have the meaning of shutting down or rebooting the system. If I enter the command init 0, the system will shut down as a result. However my question is if the system is ...
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
542 views

Linux Mint KDE won't shut down properly

I have bought a HP Pavilion Power 15-cb006ng and installed Linux Mint KDE on it. However, shortly after I started using it, it wouldn't shut down properly anymore. The first time it happened, I could ...
2
votes
2answers
927 views

Systemd: how to shut down without actually shutting down

I'm setting up an embedded device running Debian Jessie to shut down when a UPS experiences a power failure. Unfortunately, the device's bootloader restarts the OS whenever it quits, so shutdown/halt ...
1
vote
1answer
412 views

Why is my shutdown command executed immediately sometimes and delayed in some other cases?

I don't know if this is something configured by default on my system (I just recently installed Manjaro i3). I'm just confused that sometimes when I run shutdown in the command line, it is executed ...
1
vote
1answer
663 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 ...
0
votes
0answers
22 views

How to block all software shutdown requests in android?

I rooted my android-based TV box and installed Debian Jessie on it. I have some crucial services like web servers and Homebridge on it that I want to run uninterruptedly on Debian, and I really hope I ...
0
votes
0answers
79 views

How to send notification when user press shutdown button in the GUI?

I am writing a program to remind extract the pendrive before shutdown. This program locks shutdown if pendrive is connected, and unlock it if pendrive is disconnected. For do this, I use a polkit ...
2
votes
3answers
257 views

How can I send a notification with polkit 0.106?

I am developing a application to don't forget the pendrive. This app must lock the shutdown if a pendrive is connected to the machine. As this form, if the user wants to shutdown the system while a ...
0
votes
0answers
197 views

Allow unprivileged LXC container to shutdown the host

I am running a KVM-QEMU VM inside an unprivileged LXC container. The customer requested that when a user shuts down the VM, the entire host shuts down. I am using a libvirt hook to shutdown the LXC ...
2
votes
1answer
2k views

System hangs on shutdown/reboot - stoping User Manager for UID 1000

I'm having this issue when shutting down for a while now. When I shutdown or reboot system I've got 17 jobs which hangs shutting down for 90 seconds. 16 of them are related to LVM 1 says Stopping ...
0
votes
1answer
237 views

Understanding shutdown command in inittab

Looking in my /etc/inittab file I see the following entry: ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now What do the -t1 and -a options mean? They do not appear in the manual for the shutdown ...
1
vote
2answers
67 views

Performing multiple operations in one SSH command

I have a command, # ssh -t computer.A 'command' to execute a simple command on computer.A remotely over SSH. To add to this, I want to execute a command on computer.B through computer.A.  In my ...
0
votes
2answers
343 views

Can't connect to local MySQL server through socket

All commands in debian9's interactive non-login shell (graphical mode). I want to backup mysql before reboot or shutdown. who test tty7 2018-02-01 18:26 (:0) test@world:~$ pwd /home/test ...
1
vote
1answer
285 views

GNOME shutdown prints ugly poorly formatted terminal messages in CentOS 7

I am using VMware to run a CentOS 7 virtual machine with a GNOME desktop. I am having an issue where every time I shut down the virtual machine instead of showing a nice shutdown screen I get a ...
2
votes
1answer
1k views

How to view logs of stop jobs at shutdown on Debian?

Whenever I shutdown my Debian system, stop jobs are running for 1m30. I don't know what causes this and would like to investigate. I've look for various questions about shutdown logs however neither ...
1
vote
0answers
443 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
95 views

Linux keeps shutting down while after grub menu, boot success only non-deterministically [closed]

When I boot Linux, after the grub menu, it performs the initial checks, and then just shuts down suddenly. If I then switch it on again it again does the same thing after the grub menu. Surprisingly,...
8
votes
1answer
485 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 ...
5
votes
1answer
222 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 ...
2
votes
0answers
454 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 ...
1
vote
4answers
2k views

How to poweroff multiple linux machines in a single command or script?

I have more than 10 Linux machines. How may I power off all machines using a single script? The password and user is the same for all of the machines.
2
votes
2answers
276 views

Clean shutdown, run sync after umount

Does it make any sense to run sync after umount during a clean shutdown? I assume that umount will write to disk any cached data. The only odd case I can think of is when you have some loop device (...
0
votes
0answers
509 views

Configuring Java 8 systemd service to behave correctly with halts and restarts

I am trying to get a Java 8 daemon/service to run on my Raspbian Pi (using Raspbian Stretch Lite, which is based on Debian under the hood) at startup via systemd. Not only do I want it to run at ...
1
vote
1answer
323 views

How do I interpret audit message logged during shutdown? [closed]

My machine (RHEL 7.4) is hanging during shutdown and displaying the following audit message: type=1300 audit(1503569606.186:27573): arch=c000003e syscall=2 sucess=no exit=-13 a0=7ffee8a3db90 a1=2 a2=...
1
vote
0answers
118 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 ...
0
votes
2answers
1k views

Problem when i shutdown the system or reboot with Linux Mint 18.1 KDE

Anytime i try to shutdown or reboot the system, desktop and everything is closed but this appear: The system is blocked and i'm obliged to shutdown the Notebook manually with the button, i have fear ...
1
vote
0answers
40 views

Virtual machine hanging on shudown

I asked this over on 'Ask Ubuntu'; it got upvoted but didn't attract an answer so I am moving it here. I am running Ubuntu 16.04.2 fully updated. I have a virtual machine running 14.04.5 using kvm ...
5
votes
1answer
482 views

Understanding the output of last reboot shutdown

When I use the command last -x reboot shutdown I get an output like this: reboot system boot 2.6.32-279.14.1. Tue Jul 18 22:03 - 03:20 (05:17) shutdown system down 2.6.32-279.14.1. Tue Jul 18 ...
1
vote
1answer
98 views

Join an interactive session of a process launched from rc.local

Is there a way to join an interactive session of a process that was ran on boot with /etc/rc.local, or send it "stop" over STDIN on reboot/shutdown and wait for it to end before shutting down?
0
votes
2answers
1k views

Error when running `shutdown -h now`

I have a BeagleBone Black wireless with Debian 8.7. I have created a user s with the command adduser s and then added the user to the sudoers file with the command usermod -a -G s. When I try to ...