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
27 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
211 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 ...
0
votes
0answers
15 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
31 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
160 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
44 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
59 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
27 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
71 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
43 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
306 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
60 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
66 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
33 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
263 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
36 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
61 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
28 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
74 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
57 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
47 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
151 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
70 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 — ...
2
votes
2answers
709 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
135 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
54 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
43 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
136 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
40 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
129 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
184 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
357 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
26 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
424 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
283 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
3k 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
51 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
39 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 ...
1
vote
0answers
201 views

GlusterFS graceful reboot of brick

TL;DR What is the best/simplest way to reboot a gluster node (containing a replicated brick) in such a way that it doesn't impact (i.e. freeze) the remaining cluster? Longer story: I'm configuring ...
0
votes
0answers
19 views

Only the VirtualBox GUI close on shutdown

I found a tricky bug with the VirtualBox GUI. I always have to shutdown my computer twice when the GUI is open. I record a liltle video to show you the bug. OS: Ubuntu 18.04 LTS + cinnamon ...
3
votes
2answers
246 views

How to shut down Fedora without logging in

I have Fedora 27, and when I go away, the login screen is shown. Then I return to shut down the PC, but is not allowed to shutdown the PC from the login screen. I need to log in and then shut down. ...
3
votes
1answer
899 views

Can't properly stop SAP Hana on reboot / shutdown with systemd

We encountered the following problem in our company. We have multiple Red Hat Enterprise Linux Servers on which "SAP HANA S/4" is running. We created a systemd Service to automatically start and stop ...
0
votes
0answers
132 views

System Reboot or shutdown in terminal prompts for retry after closing inhibitors and logging out other users

I was trying to shutdown or reboot my system given as a BYOD by organization for which I work. So, far I have tried this : And as you can see, each time I get this error : User root is logged in on ...
0
votes
0answers
17 views

Kali persistence freezes after shut down [duplicate]

I decided to install Kali 2018.2 on my 16gb SanDisk cruzer with persistence. But ever since I installed it, I cannot switch off my system safely, I end up force switching off my laptop which I do not ...
1
vote
1answer
29 views

How to calculate the maximum value for shutdown -r +${MINUTES}?

I am using CentOS 7.5.1804 with GNU bash version 4.2.46(2)-release (x86_64-redhat-linux-gnu). For scheduled reboots within maintenance windows I calculate the minutes from now up to the next reboot. ...
0
votes
0answers
44 views

How to prevent spinning up standby drives on system shutdown?

I have an file archive server with 20+ hard drives attached to it. Since I don't access them very often, most drives are kept in the "standby" mode. This way, even though the server itself runs 24x7, ...