Questions tagged [shutdown]
a command to turn off or reboot the system
541
questions
1
vote
3
answers
53
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 ...
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));
...
1
vote
0
answers
64
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 ...
0
votes
0
answers
336
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 ...
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 ...
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 ...
0
votes
1
answer
66
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 ...
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 ...
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:...
0
votes
1
answer
353
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 ...
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
...
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 ...
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; ...
0
votes
1
answer
660
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 ...
-1
votes
2
answers
366
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, ...