a command to turn off or reboot the system

learn more… | top users | synonyms

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 ...
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 ...
0
votes
3answers
2k views

Bring up shutdown menu of Cinnamon via command line

How can I bring up the shutdown menu of Cinnamon via command line? Note: I don't want the user menu. This menu for switching or logging out a user is brought up via Ctrl+Alt+Del.
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 ...
4
votes
2answers
206 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, ...
2
votes
1answer
37 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 ...
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 ...
4
votes
1answer
4k views

Find last shutdown time

This is the command I am using: last -x|grep shutdown | head -1 but it's giving me the duration with +2 hours: shutdown system down 3.14-1-amd64 Mon Jul 21 08:43 - 22:19 (13:36) the last ...
7
votes
6answers
2k views

Can you make a linux system halt and boot my Raspberry-pi at certain times?

How to make a system turn itself off and back on at different times. For example I would have my "server" turn off at 4 A.M then turn back on at 5 A.M every day. Is this possible? I am using a ...
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 ...
1
vote
2answers
721 views

How to shutdown the computer from SLiM when root login is disabled?

I installed the SLiM login manager on Debian Wheezy and disabled the root account's ability to login, as described in this Debian Wiki article, so sudo <command> must be used to run anything as ...
4
votes
1answer
1k views

How do I run a script just before halt using LSB headers on Raspbian

I'm building a shutdown button for my Raspberry pi, and for that I have a python script that needs to change a GPIO pin on my Raspberry Pi just before the system runs the halt script. Now Raspbian ...
3
votes
2answers
4k views

Poweroff or Reboot as normal User

To run the command poweroff or reboot one needs to be super user. Is there anyway I can run this as a normal user? I just don't want to sudo and enter my password every time I reboot or power off.
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
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 ?
8
votes
5answers
4k views

Can I allow a non-root user to log in when /etc/nologin exists?

Suppose a non-root user with sudo privileges executes a delayed shutdown (shutdown +10 or whatever) and logs out. Then, before the shutdown occurs, he wants to log back in and cancel the shutdown. The ...
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 ...
1
vote
1answer
2k views

My laptop shuts down every time I unplug it

I am using a Lenovo G580 with Linux Mint 14 updated. My laptop shuts off every time I unplug it as if there is no battery even when I am using the BIOS. But, It detects the battery as "84% charging" ...
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
125 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 ...
2
votes
0answers
323 views

Shutdown doesn't work

I've installed the dwm window manager on Linux Mint 15, configured it and now shutdown doesn't work. I typed shutdown -P now in terminal. dwm closed successfully and now I'm seeing a black screen ...
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
408 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 ...
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 ...
36
votes
7answers
100k views

How to find out from the logs what caused system shutdown?

E.g. I'm seeing this in /var/log/messages: Mar 01 23:12:34 hostname shutdown: shutting down for system halt Is there a way to find out what caused the shutdown? E.g. was it run from console, or ...
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 ...
18
votes
4answers
38k views

How to shutdown Linux at a specific datetime from terminal?

It seems I can shutdown using sudo shutdown by specifying a time or minutes. Is there a way to specify datetime for shutdown?
0
votes
1answer
135 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
285 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 ...
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 ...
15
votes
5answers
7k views

How to shut down the computer after a task has been completed?

I usually start a download before I go to school. Which command should I use to automatically make the necessary saves and turn off the computer after a particular task has been completed? (Say, ...
2
votes
1answer
509 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 ...
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. ...
2
votes
2answers
327 views

write pc uptime in a file in shutdown

I need to log PC uptime. How I can do this? I use uptime for this and I will when ubuntu is shutdown write this command output in a file.
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
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 ...
3
votes
1answer
120 views

linux systemd intercept shutdown if service is active

I've created a little update/upgrade program for my arch-based linux. Instead of using a cronjob I'm using systemd and created following files: in /etc/systemd/system: uupgrades.target & ...
5
votes
1answer
647 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 ...