Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [shutdown]

a command to turn off or reboot the system

Filter by
Sorted by
Tagged with
-2
votes
1answer
37 views

What does the command “shutdown -t 100 +3 -h” mean?

I have read the man page for shutdown(8) on a Fedora and OpenBSD system and I can't seem to find any documentation on the -t option. Is the -t a legacy option that is no longer supported in newer ...
1
vote
0answers
154 views

Fedora 30 : Laptop won't shutdown/reboot or hibernate

I've installed f30and I've come across this issue : when I power on my laptop and close the lid, the system gets hibernated as I told it to do. When I open the lid the system is up and running again ...
5
votes
1answer
70 views

Re-Enable Shutdown Messages Ubuntu 18.04 Server

I have a machine running Ubuntu 18.04.3 LTS server. At some point it stopped the verbose onscreen kernel messages during a shutdown or reboot, including the status of the stopping of services. For ...
1
vote
0answers
34 views

reboot causes device to shutdown but doesn't start again for many hours after

I am using a BeagleBone running Debian. I have a cron entry in /etc/crontab which tells the device to reboot at 03:01 every night as follows 00 03 * * * root /sbin/shutdown -r +1 >> /...
0
votes
2answers
71 views

Why isn't my desktop powering off with “systemctl poweroff”?

Why isn't my desktop powering off with systemctl poweroff? What I did: sudo -s systemctl poweroff got "reboot: system halted" System: armbian (debian-10-buster on orangepiplus2e) 32-bit
0
votes
0answers
22 views

Eject live CD on reboot/shutdown

This problem has been posted before but didn't seem fully resolved (link: Eject CD on shutdown). So the problem is booting off of live CD then I want to eject the CD on reboot or shutdown. I have ...
1
vote
0answers
18 views

Automatically shutdown after recovering from suspend

Environment: OS: Linux Mint 19.2 Laptop: XPS13 9360 with the latest BIOS Problem: I cannot understand why but if I close the lib, my laptop will go suspend and when I reopen the lib, it will ...
6
votes
1answer
167 views

Random shutdown

I have Arch Linux running on Dell PowerEdge R210. It is not high loaded, only few scripts are running. There is no any software like web services -- only base system. The server has been running fine ...
1
vote
1answer
31 views

how to properly halt linux system when exiting init

In Qemu, I'm starting a linux VM where init process (PID 1) is bash. It is working : I can use bash after boot. But when I quit bash with a exit or CTRL+D I got a kernel panic. Kernel panic - not ...
3
votes
2answers
579 views

System freeze on reboot/shutdown

My laptop is an Acer predator helios 300 with intel i7-7700hq and an NVIDIA GTX 1050ti. It had a 128GB NVME SSD and 1TB hard disk. I had dual boot on it with fedora 29 installed on the SSD and Mint ...
1
vote
0answers
21 views

How to start system shutdown or poweroff by hardware interrupt

I have a small headless embedded Linux box (NXP i.MX6, with userspace based on Debian, but am interested in more general solution). It has no HID input, no desktop stuff, just a serial console and a ...
0
votes
1answer
97 views

How to stop “failed to unmount /usr/” errors during shutdown in Debian?

I just installed Debian 10 from disk. Whenever I shutdown, I get a single message displayed on screen, "Failed to unmount /usr/". What can I do to correct this? Is this error likely causing damage to ...
-1
votes
1answer
45 views

disable shutdown and reboot commands in sudoers file for normal users not working

I have added the following lines in order to prevent normal users from soporte group to shutdown system: cmnd_Alias SHUTDOWN = /sbin/shutdown,/sbin/reboot,/sbin/halt,/sbin/poweroff # User ...
0
votes
0answers
34 views

MX Linux when shutdown HDD make noise of media parking like force shutdown

i installed MX Linux on my Dell Latitude E5420 alonside Windows 10. When running shutdown in MX Linux, the hard disk drive make noise like old HDDs do when parking, which it is not doing on ...
2
votes
0answers
90 views

How to skip 'Please remove the installation medium then press enter'

I have a time-consuming program running in Lubuntu 18.04 Live. It will take around one day to finish. After the program finishes the computer shuts down. But since I am running Lubuntu Live, the ...
1
vote
1answer
53 views

Giving a script enough time to finish before shutting down

I built a little linux-based device that has an eInk screen. It seems that it may increase the lifetime of the screen if I can blank it before the computer shuts down. (EInk passively continues ...
0
votes
1answer
45 views

Do systemd --user services shutdown properly?

I have a few services that I launch with systemd when I login in my user account, e.g. I did: systemctl --user enable foo.service But I usually terminate my X session abruptly, i.e. just pressing ...
1
vote
0answers
43 views

Debian Stretch network boot (nfs) shutdown fails because of network service

with Debian Jessie my Raspberry Pi was working pretty well with booting from NAS. With Stretch there is an issue with shutdown (and reboot), because Stretch seems to disable the network interfaces too ...
4
votes
1answer
47 views

Will “sync” wait?

I am using juice4halt (a small super-capacitor UPS) on my Raspberry Pi, but I found out that the amount of time halt is taking is too long, and so the system will poweroff because of undervoltage. So ...
0
votes
0answers
66 views

Getting Reboot instead of Shutdown on Linux Distros

I've seen this problem before, on the machine that i am having this bug i had Ubuntu and the same was going on but then i found a workaround that was to use ~# shutdown -P now instead of only ~# ...
0
votes
0answers
17 views

How to configure a service that blocks shutdown?

i have a service, but after shutdown starts it finishes as if it's killed. I need it to last CUSTOM amount of time for it can make all the stuff and then shutdown after work is done. Is it possible to ...
11
votes
6answers
1k views

shutdown at specific date

I know that you can schedule a shutdown for a specific time via shutdown -h 21:45 and that you shouldn't use crontabs for such things because of their repetitive nature. How can I schedule a shutdown ...
0
votes
1answer
33 views

How to find out which process keeps an LVM partition from unmounting *during shutdown*?

I see that LVM1 (/dev/mapper/lvm1--vg-lvm1--lv) fails to umount during the shutdown, when I cannot run one of the many options to find out which process or user is holding up the mountpoint. It also ...
0
votes
1answer
169 views

Sudden shutdowns on Ubuntu 18.04 Acer Laptop

I am running Ubuntu 18.04.2 on an Acer Laptop (F5-573G-52PJ). Randomly the system does a shutdown itself. In /var/log/syslog I see the events: May 15 11:24:53 top boltd[1176]: power: got event for ...
2
votes
2answers
105 views

Is it possible to create a terminal command alias to automate CTRL + ALT + SYSRQ + R-E-I-S-U-O keypresses?

For whatever reason, my external harddrive pretty regularly experiences initramfs issues on boot, causing me to run $ fsck /dev/sdb2 -y to bring everything back in line. One thing I have noticed ...
4
votes
2answers
349 views

Systemd hangs when attempting shutdown

Distro: Gentoo systemd: 242 For a while, on both of the systems I have here, I've been unable to do a proper shutdown (halt, poweroff, reboot). It gets most of the way through shutting down services ...
2
votes
0answers
96 views

Linux freezes after reboot/shutdown

I'm running a Kali Linux with KDE Plasma and encountered an issue where I cannot logout/reboot or shutdown. I tried adding acpi=force, apm=power_off' and reboot=bios to the GRUB_CMDLINE_LINUX_DEFAULT,...
0
votes
0answers
50 views

numerous errors at shutdown

Lately, when I shutdown my system I get a long list of errors, such as: Apr 29 20:28:22 lee-desktop2 kernel: [ 5782.005888] pcieport 0000:00:01.2: AER: Multiple Corrected error received: 0000:00:01.0 ...
1
vote
0answers
171 views

kali rolling install on External HDD problem

I encountered some problems after installing kalil inux to the external hard drive. I installed kali linux to a mobile hard drive.(Mobile hard drive is USB conversion SATA HDD ) Hard disk partition ...
1
vote
1answer
187 views

Can't shutdown the laptop with dual boot Ubuntu

On a three day old Ideapad 330-15lch with Ubuntu 18.04 in a dual boot (vs Windows 10), when clicking on power off or restart, the Lenovo laptop freezes. Keyboard and mouse do not react, it does not ...
3
votes
1answer
104 views

How can I minimize damage when programmatically cutting power before a proper shutdown? [closed]

Situation The computer (running Ubuntu 14.04) is connected to a networked device which controls the power supply to the computer itself. On receiving a certain signal A, the computer must send a ...
0
votes
0answers
43 views

Characters like @ at shutdown

On the linux distros I use, debian and fedora, and on the laptops I have, when I shutdown, I see @ or sometimes other characters, on the console (next to normal sector clean /dev/xxx message) and I ...
6
votes
2answers
365 views

Is there a POSIX way to shutdown a UNIX machine?

I am searching for a POSIX command to shutdown a machine. Is there a POSIX acceptable way to do this? The commands I use to do this are not POSIX compatible (e.g., shutdown, reboot, halt or ...
1
vote
1answer
67 views

Shutdown PC after remmina connection closed

I'd like my PC to shutdown straight after I close my remmina remote connection. I searched for solutions but remmina itself shows abnormal behavior. someprogram && sudo shutdown -h 0 Running ...
1
vote
0answers
265 views

Linux freeze on shutdown problem

I'm trying to throubleshoot an annoying shutdown problem with my Sun Ultra 24 Workstation running under Devuan ASCII. groucho@devuan:~$ inxi -b System: Host: devuan Kernel: 4.9.0-8-amd64 x86_64 (...
1
vote
2answers
1k views

Shutdown and reboot hang

9 times out of 10 my computer would take ≅ 2 minutes to shutdown or reboot. I tried many things like adding systemd and/or shutdown to initcpio hooks, but no luck. reboot -f never hangs so I followed ...
0
votes
1answer
168 views

Shut down my laptop when closed screen | linux mint tessa

i use the last linux mint XFCE, i'd like my laptop to shut down when i close the screen. How can i achieve that ? I've tried to uncomment and set HandleLidSwitch=poweroff in logind.conf i restarted ...
3
votes
1answer
750 views

What is the delay between SIGTERM and SIGKILL on shutdown?

When a Unix-like system is shut down normally, e.g. using halt, shutdown, poweroff etc. or the GUI equivalents, it will try to exit all processes gracefully first by emitting a SIGTERM signal to them. ...
1
vote
1answer
155 views

How can I reload java module

We are building a java source. When we build it with the official repo of Ubuntu it actually installs 10.0.2. see -------- which javac --------------- /usr/lib/jvm/java-11-openjdk-amd64/bin/javac ---...
0
votes
1answer
432 views

Can't shut elementary OS down: cpu hard lockup

I can't shut my system down. I have 5 sec timer for shutting down in systemd config and watchdog. In journalctl i found several issues: фев 19 10:14:40 denis-pc gnome-session-binary[1034]: CRITICAL: ...
3
votes
1answer
814 views

Unable to shutdown Ubuntu 18.04 guest using virsh-shutdown

I am running Ubuntu 18.04 (desktop) in a VM using Debian 9 and KVM as the hypervisor but running virsh shutdown BS-MS01 I get a message saying the domain is shutting down but the VM is actually still ...
3
votes
1answer
801 views

What signal is sent to running programs / scripts on shutdown?

Right now I have the following: # this function is meant for future script expansions # its purpose is clear, i.e. to clean up some temp files # now, it is doing nothing, just a special null command ...
2
votes
2answers
372 views

Using systemd I want my Postgresql ExecStop command to run at shutdown

I have a set of scripts that run constantly while Postgresql is up. I modified the ExecStop commands in my .service file so that a special script to stop those scripts and wait for them to complete ...
0
votes
1answer
75 views

Standard event messages for Shutdown, power lost on Linux

We are developing a small battery, based on capacitor, which can keep the machine ON for 2 minutes once the AC Power is lost. We are going to write a Linux device driver for the module, it provides ...
0
votes
0answers
126 views

Getting hard and soft lockups on reload / shutdown

I keep getting these lockups, regardless of the distro (Fedora, Debian Stable, Ubuntu). Happens when I run Linux from Live USB, and attempt to reload or shutdown. I have also tried installing Fedora ...
0
votes
1answer
2k views

How to deal with “A stop job is running” in Debian 9 for 90s, once every 2 or 3 shutdowns?

When I'm turning my Debian Stretch (9) off, chances are that I see something like: So a have a few questions: 1) It seems like a bug that's not been solved yet (it's been around for a few years). By ...
1
vote
2answers
95 views

How can a log print to display while shutdown, reboot or startup?

As we all know, when we reboot, shutdown or startup a system, some message will be printed on the screen, here is a capture: My system is Ubuntu 16.04, I know these log messages as above come from ...
0
votes
1answer
74 views

How to 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
36 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
101 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.