Stack Exchange Network

Stack Exchange network consists of 174 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
51 views

Who writes the log on the screen during shutdown and startup (after grub)

As we know, when we startup the system (after grub) and when we shutdown the system, many logs will be printed on screen. I know that the kernel would write some logs of the kernel. But how about the ...
1
vote
0answers
26 views

Ubuntu server halted with binary zeros (^@^@^@^@^@… as text) in syslog a kern.log [duplicate]

My server stopped working (inaccessible through network) without any reason. Traffic was normal before it happened, circa 20MBit/s, after restart everything was OK and server was running as usually. ...
0
votes
1answer
69 views

Shutting down computer for night?

How can I make a script to shut down computer while I sleep? I mean, it should shut down the computer when I run the script and start the computer at 6.45 am.
0
votes
1answer
49 views

Why would it not be a good idea to schedule a shutdown with cron?

In an answer to the question How to shutdown Linux at a specific datetime from terminal? a high-rep user provides two solutions: using at and using cron. The cron-based option says "this not a good ...
0
votes
0answers
38 views

Is it possible to distinguish signal from kernel at reboot and at kill from terminal

As I know, we can send a signal SIGTERM to a process by pressing ctrl+c or by using pkill -f processName. Also, when we reboot or shutdown, the kernel will send SIGTERM to each process too. So I'm ...
-3
votes
1answer
105 views

How does Linux operating system shut down? [closed]

Gilles wrote an excellent reply about how Linux kernel shuts down at https://unix.stackexchange.com/a/122667/674 I was wondering how Linux OS shuts down (in cases of both systemvinit and systemd)? I ...
1
vote
1answer
61 views

When the operating system shuts down, how does a service manager know that it should sends SIGTERM and SIGKILL to its services?

Reading one of Stephen's excellent replies, When the operating system shuts down, processes are shut down using SIGTERM and SIGKILL, but those signals don’t come from the kernel (or not directly — ...
2
votes
2answers
694 views

What is the difference between “when the operating system shuts down” and “when the kernel shuts down”?

Reading one of Stephen's excellent replies, I was wondering what differences are between When the operating system shuts down. ... and When the kernel shuts down, ... (... I’m considering that ...
0
votes
0answers
77 views

Linux Mint 19 cinnamon stop job at shutdown

on my Linux Mint 19 "Tara" system with cinnamon desktop, when I shutdown via the GUI, the system halts for 1 min and 30 seconds, and a text says "A stop job is running for Session c2 of user ... (1min ...
0
votes
0answers
25 views

How can I make my computer power of while later return to same state?

So recently while I'm browsing the internet, I've accidentally press some keys (originally wants to press ctrl+t). And suddenly my computer (hardware) powers off (I mean you can hear the sound that ...
0
votes
0answers
49 views

Plasma 5 - shutting down kills apps

I'm using KDE/Plasma for several years now and I always had a problem with shutting down but it's just now it started to annoy me. The problem is that when I shutdown my laptop (with Plasma shutdown ...
0
votes
1answer
35 views

How to add a delay to the power button for accidental bumps

I have a miniature PC here with a large and prominent power button on the front which is easy to bump accidentally. The system is running CentOS 7 with systemd. I already know that I can set ...
1
vote
0answers
40 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 ...
0
votes
1answer
77 views

/sbin/shutdown -h now; not working in crontab

I've made a script to update and upgrade at 12.15 every Friday and after both of these jobs have been completed shut down. The updates work fine, however it does not shut down afterwards. I've tried ...
17
votes
10answers
8k views

How do I shut down a Linux server after running for 60 minutes?

I have a server that it is normally switched off for security reasons. When I want to work on it I switch it on, execute my tasks, and shut it down again. My tasks usually take no more than 15 minutes....
0
votes
1answer
37 views

Using 'at' and 'systemctl' commands together

I'm trying to schedule shutdown of PC using at command like this: echo "systemctl poweroff" | at -M now +1 minute or like this: echo "sudo systemctl poweroff" | at -M now +1 minute but nothing ...
0
votes
0answers
28 views

Can't shut down / log out / sleep on Kali Linux [duplicate]

I have a MSI GS65 Stealth Thin 8RE laptop with Kali Linux installed on it. To shutdown my system I'm obliged to use the hard method (with the physical button) because when I click Power off in the ...
0
votes
0answers
103 views

Surface pro 3 with Linux Mint shutting down after ~30min?

I have a fresh install of Linux mint 19-Cinnamon on a (fairly old) Surface pro 3. I simply want to use it for reading and annotating pdfs. After about 30min of use, however, it always shutdown (...
1
vote
1answer
108 views

is there any difference between /usr/bin/poweroff and /usr/bin/shutdown? [duplicate]

I just realized that /usr/bin/poweroff and /usr/bin/shutdown are symbolic link to systemctl, but I don't know how systemctl is being run. so is there any difference between /usr/bin/poweroff and /usr/...
5
votes
3answers
338 views

Is it possible to remotely cancel a scheduled shutdown when /run/nologin exists?

Consider this scenario: User ssh into a system and does whatever he/she wants. Then schedules a shutdown using: sudo shutdown -h +1 Finally closes the ssh session Now /run/nologin has been ...
30
votes
2answers
4k views

What is the difference between shutdown 18:00 and at 18:00 shutdown?

at 18:00 shutdown now and shutdown 18:00 , are they starting the same service? Do they work the same way?
0
votes
1answer
22 views

Lubuntu: reboot-log-entries don´t seem to be correct

I´ve recently taken a look at my reboot-logs with last -x | grep reboot : reboot system boot 4.4.0-134-generi Tue Aug 28 12:20 still running reboot system boot 4.4.0-134-generi Mon Aug 27 14:...
0
votes
1answer
197 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
195 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
1k 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
47 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
37 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
1k 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
163 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
18 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 record a liltle video to show you the bug. OS: Ubuntu 18.04 LTS + cinnamon ...
3
votes
2answers
202 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
662 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
100 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
28 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
0answers
38 views

How to prevent spinning up standby drives on system shutdown?

I have an file archive server with 20+ hard drives attached to it. Since I don't access them very often, most drives are kept in the "standby" mode. This way, even though the server itself runs 24x7, ...
0
votes
0answers
42 views

Make HTTP call on system shutdown using systemd [CentOS 7]

I need to make a service/script that make a HTTP/POST call on system shutdown to informs a distant server that the system is going to stop. I've tried to watch the runlevel but it looks like it is ...
0
votes
1answer
69 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 ...
0
votes
0answers
266 views

Laptop power button not recognized

I'm running Linux Mint 18.3 on an Acer Swift 3 laptop. My OS doesn't recognize when I press the power button on my laptop. Here's what I've checked: acpi and acpi-support are installed per this ...
1
vote
0answers
48 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
454 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
525 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
74 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
62 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
48 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
39 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
445 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 ...
0
votes
0answers
147 views

How to use system logs to investigate unwarranted shutdown?

As there is no /var/log/messages in systemd, can journalctl -f be used here?
2
votes
2answers
664 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
264 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 ...