a command to turn off or reboot the system

learn more… | top users | synonyms

0
votes
0answers
8 views

Kernel-space call orderly_poweroff not work - wait for completion

[kernel ver. 4.1] My big problem: my kernel-space driver call orderly_poweroff(true), but after that there is no reaction form Linux side (OS will still work). After a while, I received log form ...
2
votes
1answer
36 views

cannot connect with ssh to linux after shutdown command

i've used command shutdown -h 12:55 (for example), and linux server shutdowned at this time, but when I'm trying to connect with ssh I receive the message: "The system is going down on Thu Dec 31 ...
1
vote
3answers
23 views

Shutdown PC after suspending terminal process (apt-get upgrade)

What's going to happen if I shutdown my PC after suspending a terminal process (with Ctrl+Z)? In my case, it's sudo apt-get upgrade. The upgrade file size is 250 MB, it takes far more time downloading ...
53
votes
6answers
5k views

Why does reboot and poweroff require root privileges?

To restart or shut off Linux from the terminal, one can use reboot and poweroff, respectively. However, both of these commands require root privileges. Why is this so? What security risk is posed by ...
3
votes
1answer
117 views

How to run an executable with systemd before NetworkManager shutsdown

I am trying to run an executable, right before shutdown, that needs NetworkManager running. Here is the service file that I currently have (located in /lib/systemd/system), and it works fine if I have ...
0
votes
0answers
47 views

lenovo z-5170 hangs at Plymouth screen during shutdown or restart(elementary os)

When shutting down or restarting the computers hangs and I need to click on the power button. The message on the screen is: init: wait-for-state (plymouth-shoutdownlightdm) main proccess (2050) ...
1
vote
2answers
29 views

Use rtcwake without entering a password

I would like to execute something like rtcwake -m off -s 60 without entering a password. I used visudo to write the following line into /etc/sudoers: %sudo ALL = NOPASSWD: /sbin/shutdown, ...
0
votes
1answer
65 views

Does a Linux brand cause a Dell Latitude D620 notebook to hang during reboot process?

Recently, I installed Linux Trisquel 6 on a Dell Latitude D620 notebook (dual core cpu, 2GB DDR and 60GB hard drive), where previously Windows XP was installed. But Trisquel doesn't seem to support ...
4
votes
2answers
204 views

message at shutdown: watchdog did not stop!

At shutdown I often get the message watchdog did not stop! and then the laptop freezes after few other lines without shutting down. Any idea on how to fix this? Recently it happened very often, ...
0
votes
0answers
39 views

GTK Warning ** drawing failure

Currently On Debian Stretch: Relatively new to Linux and to this stack exchange any further information you may require i will update as requested. Thank you... Recently i have been struggling to ...
0
votes
1answer
63 views

'This webpage is not available' after 'shutdown -r now'

I've been having some MySQL issues so I tried to restart my server with shutdown -r now. I can SSH into it, but any page I try to navigate to now returns: This webpage is not available ...
0
votes
0answers
73 views

CentOS 7 NUT UPS Specify Shutdown

I've recently put my CentOS 7 server onto an Eaton 5E UPS and I am hoping to specify the Shutdown conditions. I've installed nut and done some basic configurations as suggested by ...
1
vote
1answer
27 views

How to schedule gap between shutdown and bringing up a AIX 6.1 host ?

I wan to shutdown an AIX 6.1 server immediately and then bring it up after 4 hours automatically ? Is that possible with shutdown command ?
0
votes
0answers
34 views

strange shutdown behaviour

Usually, when I plug in stuff (mostly hdmi cable) the laptop fails to shutdown. What happens is the following: I unplug everything, I try to shutdown from gui (or terminal), but at the very end of the ...
0
votes
0answers
33 views

Lightdm - call script on shutdown

I configured lightdm to call the following cleanup-script. Here the corresponding line in the lightdm.conf: ... session-cleanup-script=/usr/local/bin/call.logout.sh ... Here the script, which is ...
1
vote
1answer
32 views

Safely remove needed before rebooting or shutting down computer?

Is it necessary to use the safely remove function to safely remove your usb stick or external hard drive before rebooting, shutting down computer, using standby or hibernation mode? (or is this done ...
0
votes
1answer
42 views

Linux: System reboots instead of power off or shutdown on motherboard intel DB85FL

The question is: Whenever I ask the system to shutdown to power off, it goes to power off mode for like 2-3 seconds then it powers on automatically again without my intervention. I did not go manually ...
1
vote
1answer
51 views

Sudden shutdown happens only when I have PhpStorm opened

I've had this reoccuring sudden shutdown issue happening recently, and it always happens when I have PhpStorm opened, I'm not sure if it's related, but it still seems random, meaning that sometimes I ...
2
votes
0answers
124 views

systemd: running a script on shutdown after filesystems are mounted read-only

Is there a way to run a script on shutdown, after the file system is remounted as read-only? I've a raspberry pi connected to a wireless socket, which I can control via a sender and a script. I want ...
1
vote
0answers
16 views

Since Using Starch I Cannot Turn Off Computer

Since upgrading to starch, when I click the button in Gnome to shutdown the computer, the screen turns off and the computer stays running (i.e. I can hear it). It used to be that the normal behaviour ...
1
vote
0answers
406 views

Ubuntu 15.10 gets stuck at shutdown

Whenever I shut my computer down just stays stuck at the shutdown screen loading bar and it turns off afters hours of just being there loading, new to Linux I need a little hand. I've read that ...
4
votes
1answer
90 views

System does not poweroff - how to diagnose

After upgrading to debian jessie my dated desktop system no longer powers off reliably (/sbin/poweroff - via systemctl on tty1). Instead, it shuts down, pauses and reboots and only powers off if I ...
2
votes
2answers
273 views

RHEL 7 how run longtime script before shutdown/reboot systemd

I'm trying to found solution how run script before shutdown/reboot is initiated in RedHat7. I need to correctly shutdown SAP database when I'm shuting down or rebooting server. Script for SAP ...
0
votes
1answer
134 views

how to configure systemd shutdown process

I see messages like these in my journal : Sep 28 17:27:48 localhost kdeinit5[4476]: Qt: Session management error: networkIdsList argument is NULL Sep 28 17:27:48 localhost kdeinit5[4476]: No DBUS ...
3
votes
2answers
55 views

Is there a command to see if there was a thermal cut off in my laptop?

Scenario: The computer shuts off randomly. Sometimes, it shuts off by, first the monitor goes off, and some seconds later the whole computer turns off. The current "sensors" reading is: $sensors ...
2
votes
2answers
284 views

newly installed debian gnome 3 hangs at shut down

I have just installed Debian Stable with gnome 3 on my msi laptop MSI GS 60 2PC-247XFR, when I shut down or quit session the system just freezes, here is a quote from my syslog file: Sep 26 17:44:21 ...
4
votes
1answer
67 views

If my program detects that a power loss will occur in a few seconds, what can it do to avoid data corruption?

A program (which needs to read and write from and to the filesystem), has the extra feature of being able to communicate with an external sensor. Therefore it has the unique ability to know if a power ...
3
votes
1answer
2k views

“A stop job is running…” on shutdown

Almost every time when I'm shutting down or rebooting the system I get the following message before the system actually shuts down: A stop job is running for Session 1 of user xy It waits for ...
1
vote
1answer
170 views

Script to run at shutdown

I'm trying to create the equivalent to rc.local that runs last during startup, but to run first during shutdown. I basically copy/pasted /etc/init.d/rc.local as the base template, and updated the ...
1
vote
1answer
133 views

systemd: How to check scheduled time of a delayed shutdown?

I like to use shutdown -h TIME/+DELAY sometimes. However, since the switch to systemd (on Ubuntu), things seem to have changed quite a bit. Apart from the fact that a previous shutdown command no ...
2
votes
1answer
508 views

Umount network drives with systemd before shutdown

My shutdown takes quite a long time (I'm on Debian 8.1) and I found out that it can be fixed by unmounting the network drive before shutting down the system. Apparently the network gets disconnected ...
0
votes
0answers
110 views

Internet connection only through VPN after forced shut down

When on campus, I can only access the internet via the university's VPN. The connection is established by the Cisco Annyconnect Client (version 4.1). I also set the proxy in the browser. All according ...
2
votes
0answers
67 views

How do I make a service stop all at once?

I used the script here to create a service to start and stop a Minecraft server on boot and shutdown. The script basically starts the server jar file in a GNU screen (it also does backups and updates ...
1
vote
0answers
1k views

Failed unmounting /home during shutdown arch linux

I've installed arch on my system multiple times and everything has worked fine, but since last installation I've been seeing messages : Failed unmounting /home. and Failed unmounting /run/user/1000. ...
-1
votes
1answer
101 views

Shutdown command fails

Running lxc on my Debian 8 system. Container stopped responding to ssh. lxc-console and lxc-stop were both unresponsive. /etc/init.d/lxc stop was unresponsive. Fine, time to reboot. shutdown -r ...
5
votes
1answer
643 views

After sending shutdown command, ssh session doesn't terminate

Whenever I send the command to turn off or restart my Debian servers, my shell is left hanging and unresponsive (can't type any commands). Performing the same action in Ubuntu results in the ...
1
vote
0answers
60 views

Graceful shutdown with option to save files or cancel

How do I shutdown a desktop session gracefully from the command line without root, giving programs the option to ask the user to save files or cancel the shutdown? I know shutdown, halt, and other ...
2
votes
1answer
330 views

Critical temperature reached - don't shut down

In my syslog I had: thermal thermal_zone0: critical temperature reached(102 C),shutting down I lost data due to this. I would much rather that the system: suspended to RAM, or lowered the clock ...
0
votes
0answers
355 views

Ubuntu 15.04 Shutdown problem

When I Shutdown my Ubuntu 15.04 , sometimes instead of shutting down it keeps on showing animation of shutting down. I have installed gnome on my system.
1
vote
1answer
64 views

running command before shtudown doesn't seem to work

I've created an ubuntu server kiosk based on some guide that I've found and I'm trying to stop the kiosk before the shutdown. The kiosk is being started automatically or manually with the command sudo ...
2
votes
1answer
215 views

How to schedule shutdown every day?

We have a server that is used for Linux thin clients in a class. The server is started when required and I want to schedule it to power off at 22:00 every day to avoid power wasting. I thought of ...
0
votes
1answer
239 views

How do i force shut down on a computer without on off button

I have a chromebook, I just installed Uberstudent(based on ubuntu 14.04) on it and when I tried to reboot it after installing, it doesn't shut down. It just says SQUASHFS error: Unable to read ...
1
vote
2answers
69 views

Gentoo portage continue after shutdown

Can I rerun my command to install KDE full after a shutdown and will it continue? I'm installing KDE and it takes a while now. I'm on my laptop and it's pretty late here. There are many packages to ...
-9
votes
2answers
99 views

open ssh server back [closed]

After I type # shutdown -h now from terminal, I can't access to the ssh remote server. (ssh root@10.101.6.240) How should I open back the ssh server?
1
vote
2answers
679 views

KDE: Leave --> Turn Off Computer not shutting down system

I recently decided to install Debian 8 with the KDE desktop environment. A problem I have been having is shutting down the computer. The computer always restarts even when I tell it to shut down. I ...
26
votes
3answers
4k views

What is the difference between these commands for bringing down a Linux server?

Reading "What is the difference between Halt and Shutdown commands?" , I generally have an idea what does the command shutdown does, with or without -h/-r options. The "halt" command performs ...
1
vote
0answers
365 views

Linux Mint 17.1 shutdown option doesn't work

Sometimes when I use the shutdown option in cinnamon the system closes some of the running programs and then just sits on the desktop until I tell it to shutdown again. The shutdown and poweroff ...
5
votes
1answer
670 views

what does mount -o remount,ro / actually do (under the hood)

To remount a mounted filesystem to read-only, I can use following command: mount -o remount,ro /foo This is used for example in the shutdown sequence, where root filesystem (/) is remounted ...
1
vote
1answer
180 views

How to setup boot scripts to save orphan inodes after improper shutdown?

after abnormal shutdown in dmesg I have [ 16.107445] EXT4-fs (dm-1): INFO: recovery required on readonly filesystem [ 16.107450] EXT4-fs (dm-1): write access will be enabled during recovery [ ...
0
votes
1answer
222 views

How to shutdown Linux parted magic from terminal?

Once in a while I have to use parted magic to restore superblocks. I tried to execute in the terminal: shutdown -h now telinit 0 Both did not work, what else might be possible to shutdown Linux via ...