Skip to main content

Questions tagged [shutdown]

a command to turn off or reboot the system

Filter by
Sorted by
Tagged with
1 vote
3 answers
52 views

Execute a script when powering off, but not when rebooting (using systemd) [duplicate]

I'm working on scripts to power the TV connected to my Mac (running Linux) on and off. These scripts make use of the cec-ctl util (part of video4l), which control the CEC pin of the HDMI output. The ...
Marcelo's user avatar
  • 3,631
0 votes
0 answers
33 views

How to set the time interval between SIGTERM and SIGKILL for a user process during Ubuntu 20.04 system shutdown

This is the source code of TestShutdown program: bool stop = false; void sig_handler(int signal) { printf("receive signal %d\n", signal); fflush(stdout); fsync(fileno(stdout)); ...
lianglongxiao's user avatar
1 vote
0 answers
62 views

Systemd hangs at reboot/shutdown. No logs available

How can I figure out what service is stalling systemd during shutdown if I can't get a log? I've been struggling for days trying to figure out what is causing systemd to hang whenever I try to reboot ...
AbelianMemes's user avatar
0 votes
0 answers
330 views

Debian 12 does not completely shutdown

I have installed Debian 12 (Bookworm) in a dualboot setup together with Windows 10. However, I have a randomly occurring issue which usually happens when I use the OS for 5 to 10 minutes. When I ...
corrierichioggia's user avatar
1 vote
0 answers
46 views

Error messages at shutdown of Dell laptop with Mint 21.3 and kernel 5.15.0-101 [closed]

For about a week or two I see some error messages at the shutdown of my Dell Inspiron 7577 laptop with Linux Mint 21.3 and kernel 5.15.0-101-generic. I have no idea where or if they are logged ...
Vlastimil Burián's user avatar
1 vote
1 answer
95 views

Shutdown command vs cron jobs

I have a number of computers and each computer is starting cron jobs left and right. Those are both server computers and desktop computers. On desktop computers it would be inconvenient if a user ...
john-jones's user avatar
  • 1,736
0 votes
1 answer
65 views

Run script after everything else before poweroff

How can I configure systemd to run a script at the end of the power-off processing (the thing that, twenty+ years ago, would have been called “the power-off runlevel”)?  The script should be the last ...
QkiZ's user avatar
  • 133
0 votes
0 answers
20 views

is there a corresponding /var/log/boot.log for shutdown?

with verbose grub instead of quiet, you observe this screen for example upon boot and shutdown There is /var/log/boot.log that has what was displayed on the screen from boot. Is there a corresponding ...
ron's user avatar
  • 7,239
0 votes
1 answer
49 views

Can't shutdown Linux guest OS with `at` command

Here are three examples of what I did inside the terminal (the third one has sudo): at now + 5 minutes (interactively:) at> shutdown --poweroff now echo "sbin/shutdown -h now" | at 14:...
Samir Fink's user avatar
0 votes
1 answer
350 views

systemd-logind sees power button press but does not handle it

I am using Ubuntu Server 20.04.6 LTS over ssh. My packages are updated. If there is any other config info that would help, let me know. I have been trying for hours to get my power button to shut off ...
taurous's user avatar
  • 11
0 votes
1 answer
94 views

TX20E PCI WiFi adapter breaks Linux shutdown/suspend - it boots up after shutdown/suspend

Have dual boot: Fedora Linux 39 Windows 10 Can successfully shutdown/sleep in windows, but attempt to shutdown/suspend in Linux causes PC to turn on. Kernel: 6.6.14-200.fc39.x86_64 > $ inxi -Fxzd ...
away228's user avatar
1 vote
2 answers
40 views

Shut down actions order: write buffers after RO root remount

Exploring amazing Book How Linux Works by Brian Ward I usually have no question. But this one. At the "6.7.0 Shutting Down Your System" there is an ordered list of jobs. After remount root ...
Dmitry Dmitriev's user avatar
0 votes
2 answers
529 views

Kubuntu not shutting down

I just built a workstation that is running Kubuntu 23.10 (Kubuntu is basically Ubuntu + KDE Plasma desktop) with the 6.5.0-14-generic kernel. Specs: ASUS Pro WS WRX80e-sage SE Wifi ii motherboard; ...
John's user avatar
  • 151
0 votes
1 answer
656 views

Are there commands for execute XFCE's menu entries to reboot or power off/shut down?

There is Herunterfahren(DE)/Shut Down and Neustarten (DE)/Reboot: Is it possible to execute these GUI entries from the command line? If so, what exactly are the commands? I already checked XFCE's ...
henry's user avatar
  • 914
-1 votes
2 answers
364 views

delay/cancel linux shutdown

I know that similar questions were answered multiple times here, and my question may look weird, but my case is different. I would like to catch the linux shutdown command before another processes, ...
zappee's user avatar
  • 211
0 votes
0 answers
14 views

Wifi works only after abrupt shutdown

Its a weird thing but wifi on my Ubuntu only recognised wifi of my home router after I abruptly shutdown using my power button. Before that, It only shows 2 wifi names, not of my home wifi or wifi ...
Nik's user avatar
  • 1
0 votes
1 answer
248 views

How can I know if a file system was cleanly unmounted?

I know, fsck.ext4 -p /dev/whatever, right? That seemed to be the answer, but then I read that journaling covers a multitude of sins, and the result from fsck will just tell you that there isn't a ...
Opux's user avatar
  • 217
1 vote
1 answer
1k views

How to resolve ACPI errors at shutdown?

When I turn off the laptop, the following messages appear on a black screen, from time to time: ACPI BIOS Error (bug): could not resolve symbol [\_TZ.ETMB], AE_NOT_FOUND ACPI Error: aborting method \...
luvairo's user avatar
  • 11
1 vote
1 answer
2k views

Ubuntu 22.04 doesn't shut down

I am using an Lenovo ThinkPad with Ubuntu alongside Windows 11. After updating Windows, Ubuntu doesn't shut down and I am stuck at following screen. I tried to edit the grub file, however this didn't ...
Nico Su's user avatar
  • 11
-2 votes
2 answers
4k views

Live Kali Linux stuck at Dragon Logo on shut down or restart

I made a live Kali USB drive using Rufus and Kali Live ISO (I am using Windows 11). When I boot using USB on my laptop, the OS although starts slowly but still boots up. But after I restart or ...
Zenom's user avatar
  • 11
0 votes
0 answers
159 views

How to stop Linux from automatically unmounting CD Drive right before shutdown

I am using Pop OS on my laptop and whenever I poweroff, it automatically unmounts the CD drive. As a result every time I turn on the laptop the CD drive gets stuck in a loop of making a small noise it ...
Paris's user avatar
  • 1
0 votes
0 answers
46 views

Other solution instead of forced shutdown on my linux laptop when software freezes

i usualy play Minecraft on my laptop(4 Go, Intel i5 3320M and Intel HD graphics 4000) using a external usb ssd (on Sparkylinux for have the maximum of ram) and sometime, when i load a world, 5 ...
SpiderProgrammer's user avatar
4 votes
2 answers
1k views

ssh connection hangs on server shutdown / restart

When I shut down or restart my server while logged in via SSH, the SSH connection hangs or freezes. The terminal becomes completely unresponsive, and it takes up to one minute for the SSH session to ...
Martin Vegter's user avatar
0 votes
0 answers
21 views

Strange server behaviour after keyboard was connected - was server compromised or data centre at fault?

This morning I received a notification from our host that they couldn't ping the server, I've checked the logs and 5 minutes before the following happened: Jun 13 10:34:50 server-name kernel: usb 1-5: ...
user1008664's user avatar
1 vote
0 answers
887 views

systemd power key pressed at the same time every day

I have encountered unexpected shutdowns on a microserver, and the logs indicate that they are caused by the "Power key pressed" event. After conducting some research, it appears that this ...
fbence's user avatar
  • 505
0 votes
2 answers
137 views

How can I privilage a user to sign in on my ubuntu server via ssh when a system shutdown is scheduled?

I have scheduled a system reboot every night in my crontab with this line: 0 4 * * * /sbin/shutdown -r +5 I would like to be able to log in and cancel the reboot if I need the system to stay up at ...
Cedric Lindenau's user avatar
1 vote
1 answer
717 views

systemd service file to run a script at the time of shutdown is running at startup instead

I am new to writing these service files and I have written a systemd service file by following several blogs in stack and unix overflows. I have a script which needs to run at the time of shutdown and ...
Ruhan Sharief's user avatar
2 votes
0 answers
727 views

It's possible to force a graceful shutdown when you kill a QEMU process?

I'm working with a Ubuntu VM with QEMU, I understand that when the Host (Mac M1 in my case) makes a shutdown sends a SIGTERM to all processes, but when arrives the signal to QEMU the Ubuntu does ...
Javier Tacón's user avatar
-2 votes
1 answer
1k views

Firefox freezes, can't be killed, and Debian 11 XFCE can't be shut down

Problem: (has been happening every day, at least once, but commonly many times) I have a Debian GNU/Linux 11 (bullseye) system where Firefox 102.9.0esr (64-bit) has been randomly freezing and needing ...
BsAxUbx5KoQDEpCAqSffwGy554PSah's user avatar
2 votes
1 answer
2k views

Linux stalled while shutting down---what to do?

I tried to reboot a computer running Ubuntu 20.04 (Linux 5.15.0-67-generic #74~20.04.1-Ubuntu), but it keeps outputting error or warning messages on the black screen and does not shut down. What ...
norio's user avatar
  • 225
1 vote
1 answer
2k views

Linux does not shutdown completely (Failed to unmount /oldroot)

I've been having this problem for a few months where Linux just fails to shutdown. It freezes on the screen where all logs are displayed and stuff, the last line is always: "kvm: exiting hardware ...
Gaurav Satish's user avatar
1 vote
0 answers
1k views

failure to unmount /oldroot on shutdown; is this a problem?

At shutdown, Linux Mint 21.1 briefly flashes a warning that systemd couldn’t unmount /oldroot or /oldroot/sys because the device is busy. It still shuts down and I haven’t noticed anything else amiss. ...
3QuartersColon's user avatar
0 votes
1 answer
170 views

How can I wipe RAM after shutdown

I have heard about memtest86 how can I install it to Debian ? Is it good ? https://gitlab.tails.boum.org/tails/blueprints/-/wikis/more_efficient_memory_wipe/memtest86plus/ Or do I use ...
Bulcsú Édes's user avatar
6 votes
1 answer
1k views

How to safely poweroff a HDD?

I have a NAS server made by me with a Raspberry Pi and some HDDs attached to the USB port. All this is powered from a smart UPS made also by me. When I want to shutdown, I press a button on the UPS ...
Marus Gradinaru's user avatar
0 votes
1 answer
69 views

Isn't there a command in linux that will close the system the moment I send the command and open it 30 minutes later?

I have a linux server, but because it overheats during the day, sometimes it can change for half an hour or 1 hour. I want to cool it down. but can I do this with a command, for example, can I send a ...
Ali Karaca's user avatar
0 votes
0 answers
601 views

Unwanted shutdown of Ubuntu 22.04

Since 4 days I have a problem of unwanted shutdown. I'm using my Ubuntu 22.04 normally as always (even if it's just moving files), then the apps close suddenly and I have to press "power" ...
djcaesar9114's user avatar
1 vote
0 answers
115 views

Stuck at shutdown after an ssd upgrade

I have replaced my sata ssd with an nvme one and after I installed the current stable debian 11, it turns out that my laptop doesn't shutdown. What happens is I can see the systemd output saying that ...
Paweł Wójcik's user avatar
0 votes
2 answers
656 views

Shutdown halting on: wating for process brltty

I just installed edeavour OS and whenever I shut down the laptop it keeps getting stuck on Wating for process brltty, for a good 30 seconds. Does anyone know what to do to fix it getting stuck?
One_Sleeve's user avatar
0 votes
1 answer
299 views

How do I trigger a delayed shutdown after screen lock?

I'm a beginner Linux user, running Pop!_OS. Pop!_OS is based on Ubuntu, but uses SystemD and Gnome. I have no idea if that's going to be relevant, but figured it wouldn't hurt to mention. Here is what ...
user avatar
3 votes
2 answers
736 views

What are MODERN uses for halt (non-power off) vs shutdown (power-off)?

I have read some fascinating threads about the history and implementation of the halt and shutdown commands (and equivalents, eg. runlevels and systemctl targets) across different versions of Unix(-...
tgwdnghn's user avatar
0 votes
2 answers
165 views

REISUO vs shutdown now [duplicate]

You can use shutdown now command or REISUO trick to shutdown your computer, but what way is preferred over another?
manungsa's user avatar
3 votes
1 answer
424 views

Hibernate Windows PC from Linux

To shutdown a Windows PC from Linux I use: net rpc shutdown -I 192.168.1.123 -U userName%password and it works perfectly. To hibernate I try: net rpc shutdown -h -I 192.168.1.123 -U userName%password ...
cldparisi's user avatar
0 votes
1 answer
285 views

what's the meaning of ^@ in syslog

One physical machine had shutdown unexpected, there is no any error log about that, only get a large ^@ in one line of /var/log/syslog file such as: Dec 9 21:50:02 hostname CRON[74324]: (root) MAIL (...
VictorLee's user avatar
  • 125
1 vote
0 answers
215 views

Surface Pro 9 sticks at shutdown, how to trace the problem?

I tried installing three distros on SP9: Ubuntu 22.04.1, Ubuntu 22.10, KaliLinux 2022.3, there is problem with all these distros that it sticks at shutdown. After typing shutdown now in terminal, the ...
aj3423's user avatar
  • 215
0 votes
1 answer
569 views

Process "winedevice.exe" delaying systemd shutdown

Almost every time I shutdown my PC I have to wait about a 2 minutes for: A stop job is running for user manager for UID 1000 I know this is caused by the winedevice.exe process Only way I found to ...
eusouobn's user avatar
1 vote
1 answer
54 views

SATA HDD clunck heads on reboot and shutdown

On small NAS server based on DietPi (Debian 11), every time when I use the reboot or the shutdown command the heads of HDD's are making strong clunking noise and doesn't sound healthy. I'm pretty sure ...
lz_linux's user avatar
1 vote
0 answers
213 views

Allow remote (SSH, XRDP, etc) sudo users to suspend/shutdown without privilege elevation

Sudo users do not seem to need privilege elevation to suspend/shutdown the computer when they are doing so locally, but require privilege elevation (e.g., need sudo shutdown instead of just shutdown). ...
Damn Vegetables's user avatar
1 vote
1 answer
89 views

This cron script was missed by shutdown

Is there a way to setup cron (or any other scheduler, like anacron) to run such that it checks immediately after I resume working on my laptop (e.g. after suspension or shutdown) whether it has ...
user7088941's user avatar
0 votes
1 answer
37 views

Cross-platform way to determine if the current user has privlige to shutdown the machine (without actually attempting shutdown)

How can I check (in a safe way) if the current user has the permissions needed to shutdown the system on Unix & Linux? I'm writing a script that needs to check to see if the current user has the ...
Michael Altfield's user avatar
2 votes
0 answers
427 views

Weird characters (^@ and ū) at shutdown

Asking a question that's been bugging me on/off for a while. I have noted the above symbols (^@ and ū, sometimes only one of the two, sometimes both like in the screenshot above) at shutdown when ...
Huria's user avatar
  • 23

1
2 3 4 5
11