Stack Exchange Network

Stack Exchange network consists of 175 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
0answers
19 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
88 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 ...
3
votes
2answers
85 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
43 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
24 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
64 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
65 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
99 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
38 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
266 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
38 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
91 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
1answer
686 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
59 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 ...
1
vote
1answer
193 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
37 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
182 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: ...
2
votes
1answer
149 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
396 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
113 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
69 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
45 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
0answers
813 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
39 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
62 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
30 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
86 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
61 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
53 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
218 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
80 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 — ...
3
votes
2answers
740 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
159 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
63 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
47 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
198 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
42 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
140 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
258 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/...
6
votes
3answers
372 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
28 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
602 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
355 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
4k 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
56 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
41 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
2k 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 ...