Skip to main content

All Questions

Tagged with
0 votes
1 answer
92 views

Duration in seconds between the system down and system up in Linux

I wanted to get the system downtime duration i.e. system went down (could be due to a reboot or shutdown) and System came up. I tried checking few commands mentioned below. I converted (1+06:28) to ...
AshKash's user avatar
0 votes
1 answer
382 views

Run a systemd service at logout

I have a script that I want to run at logout/reboot and shutdown with a .service file in /etc/systemd/system. [Unit] Description=My description DefaultDependencies=no Before=poweroff.target halt....
Laphroigh's user avatar
0 votes
0 answers
223 views

shutdown command passed with ssh or directly from a pc

from pc1 as user1, the shutdown command doesn't cause any problems, but if I try to use it remotely on pc2 as user2 using the ssh protocol, it doesn't work: it requires authentication and then it ...
mazda's user avatar
  • 177
0 votes
2 answers
400 views

polkit rules to prevent shutdown / reboot does not work

I am trying to prevent reboot a Debian 11 machine from the KDE start menu. However the following policy does not work: [michael@vps /etc/polkit-1/rules.d]> cat /etc/polkit-1/rules.d/10-admin-...
Michael Tsang's user avatar
0 votes
0 answers
1k 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
  • 17
0 votes
0 answers
20 views

Preserve order of closing services while shuting down the linux

I defined a Linux systemd service which has few dependencies in unit file using "After=" and "Requires=". My service depends also on SAN filesystems controlled by Veritas. When ...
Hellraiser's user avatar
0 votes
1 answer
1k views

Shutdown of Debian 12 stops until switching to virtual console 7

I installed Debian 12 (Bookworm) on a laptop (Acer Aspire 5). It is the only OS on the laptop and it was a fresh install. Everything works fine, but when I try do power off the laptop, KDE is closed ...
leviathan's user avatar
  • 216
0 votes
1 answer
2k views

Why it shows "User xxx is logged in on sshd“ warning when using shutdown close linux server?

I log a linux server by vscode's ssh method in Win10 (the terminal in vscode is like (base) [myname@localhost ~]$ )and I am not a super user of this server (that means I cannot use su). When the ...
4daJKong's user avatar
  • 103
2 votes
0 answers
431 views

systemd: intercepting poweroff, shutdown, reboot and alert us we still have KVM QEMU guest(s) running

I want to interrupt a poweroff or reboot if KVM/QEMU Guests are still running. It should work regardless whether shutdown/reboot is requested from XFCE, or from terminal. I already have a script that ...
Shawn Hughes's user avatar
0 votes
1 answer
606 views

Linux file recovery after unexpected shutdown

Yesterday, I was using a nano file to take important notes relating to university work. I had not saved the file at any point that day, and was actively taking notes throughout the day. Towards the ...
Lily D.D.'s user avatar
0 votes
0 answers
451 views

Not turning off completely the system. its going to the halt mode in Fedora

some time when i want to shutdown the system in fedora, the system not shutdown completely. in this problem screen is off but fan is working Not sure if this is relevant,but there are several errors ...
furton's user avatar
  • 1
1 vote
1 answer
992 views

Unix/Linux "shutdown": How to prevent wall message and terminal blocking?

I'm making a script that adds a layer of functionality on top of the shutdown command. It's intended to schedule a shutdown a while into the future, and sends out it's own wall message. How do I ...
user avatar
0 votes
1 answer
1k views

using nohup even after a complete shutdown or sudo reboot, Possible?

I am using nohup python -u nationalbiblioteket_logs.py --query 0 > log_q0.out & in my Ubuntu 16.04 machine as an administrator to run really time and memory consuming program. I am already ...
doplano's user avatar
  • 103
2 votes
1 answer
536 views

Linux - Show unsaved applications before shutting down

When you shut down a macOS system, it asks applications to exit one by one, and the system will not shut down unless all applications agree to exit (aka. there is no unsaved work) or until they are ...
Hykilpikonna's user avatar
0 votes
1 answer
537 views

systemd shutdown what does -h mean when combined with --halt?

the systemd shutdown documentation at https://man7.org/linux/man-pages/man8/shutdown.8.html says that -h changes meaning when combined with --halt, but it doesn't elaborate, so what does -h mean when ...
hanshenrik's user avatar
  • 1,735

15 30 50 per page
1
2 3 4 5
10