a command to turn off or reboot the system

learn more… | top users | synonyms

1
vote
1answer
31 views

Is the root filesystem unmounted during a Linux shutdown?

What it says in the title. If the root filesystem is unmounted, then how can init be accessed to run the last few steps that occur afterwards?
0
votes
0answers
14 views

Lubuntu - Cannot poweroff laptop when using swap

I'm using Lubuntu 16.04 on my Notebook HP Pavilion g6-2305sl, and I'm having some troubles apparently (I'm not really sure) connected to swap usage. I boot up with the command line login shell and ...
-5
votes
1answer
39 views

The Linux shutdown process [on hold]

Describe the typical Linux shutdown process for me. I don't know if there is a difference between a shutdown issued using shutdown and one issued by switching run levels, so explain both if there is a ...
1
vote
2answers
35 views

How to set up an emergency power-off keyboard shortcut on Linux?

Some times when my laptop wakes up from standby or hibernation the screen backlight won't turn on and I can barely see anything in a dark room and just can't see anything when I'm outdoors. The only ...
0
votes
0answers
31 views

both USB ports randomly stop working

the problem usually occurs about once per day, seemingly at random, but occasionally two times, and occasionally zero times. devices connected are: a new STAR printer with it's own power supply, ...
0
votes
2answers
43 views

Reasons for a server to be unreachable, How to investigate?

One of my server which host a mongoDB is, sometimes and "randomly" unreachable. After a while, it come back, like nothing happend. During this period, impossible to open an ssh tunnel (timeout, don'...
0
votes
0answers
27 views

Kali Linux Rolling not getting powered off and neither restarts

Kali Linux Rolling doesn't get powered off, neither does it restart! When I attempt turn off / reboot, the system freezes and does not respond. A black screen with nothing visible keeps on displaying ...
2
votes
0answers
28 views

Enable tty console login while “A stop job is running” (stop running forever, preventing shutdown)

A message like this one is often shown on shutdown: "A stop job is running ..." (nfs mount) This apparently even happens when the NFS server did not go away. But even if the connection to the NFS ...
1
vote
2answers
36 views

systemd: stop boot process on failure (actually make a shutdown)

How is possible to immediately stop the bootup process, show some message (quit splash screen) and shutdown machine if a oneshot service fails? My service starts just one script. If something went ...
0
votes
2answers
54 views

Shutdown as a Mac

I have a iphone app that can remotely shutdown a mac computer. I would like this app to shutdown my Ubuntu computer. I'm getting following messages from the application when trying to shutdown: When ...
0
votes
0answers
47 views

opensuse leap shutdown does not shut down correctly?

I have a new laptop (lenovo thinkpad t460p) With both Windows 10 and opensuse leap installed. If I shutdown my computer under opensuse leap (using shutdown button or even /sbin/shutdown 0); it appears ...
1
vote
0answers
31 views

Shutdown problem on Lenovo G50 after installing Linux Mint 17.3

After installing successfully Linux Mint 17.3 on Lenovo G50, its not rebooted. The error is : [397.188708] Fixing recursive fault but reboot is needed! [400.538090] init: mdm main process (2363) ...
1
vote
0answers
37 views

Dual Boot: Deepin Linux, Windows 10, now windows not shutting down [closed]

I have installed Deepin, later I installed Windows 10 Pro, x64 edition. The problem I have now is that my Windows won't shut down, I can restart it, but when I choose to shutdown, the screen goes ...
4
votes
2answers
71 views

Explanation of file - org.freedesktop.login1.policy

I am using Ubuntu 16.04. There is a file located at /usr/share/polkit-1/actions/org.freedesktop.login1.policy which seems to control the permissions regarding shutdown/suspend/hibernate options. ...
0
votes
1answer
87 views

Linux mint 17.3 doesn't shut down

Just installed Linux Mint 17.3 with KDE on HP probook 6470B. Installation went well, the system said it was restarting - DVD was ejected and system seemed to shut down but it didn't. I tried Ctrl+Alt+...
4
votes
3answers
87 views

Shutdown procedure clarification

The book "How Linux Works" says the general shutdown procedure (independent of init system) is something like this: init asks every process to shut down cleanly. If a process doesn’t respond after a ...
3
votes
2answers
154 views

Systemd : How to execute script at shutdown only (not at reboot)

There is a lot of solution here to execute a script at shutdown/reboot, but I want my script to only execute at shutdown. I've tried to put my script in /usr/lib/systemd/systemd-shutdown, and check ...
0
votes
1answer
41 views

Automating Backup and Shutdown

I want to backup my entire internal hard drive files into an external hardrive and execute system shutdown once the backup is finished. The reason why I want to do that is to execute the backup during ...
1
vote
0answers
24 views

How does shutting down require sudo except when done through a GUI? [duplicate]

If I want to shut down my machine programmatically or on the terminal, I must do sudo poweroff or sudo shutdown. If I want to shut down my machine through my window manager and desktop environment, I ...
1
vote
1answer
141 views

Prevent shutdown using shell script run at shutdown

Background: I have a Python script that runs (infinitely) from startup in the background of a Ubuntu server. The process is ended by sending a SIGINT which is handled by the script which finishes all ...
1
vote
1answer
84 views

Why is a script in /etc/rc6.d not run on reboot?

I am trying to log shutdown/reboot on a Raspberry Pi. I am running latest Raspbian. This is my setup: cat /etc/init.d/log-shutdown.sh: #!/bin/sh ### BEGIN INIT INFO # Provides: log-...
0
votes
0answers
20 views

custom bootup/shutdown message

I am using Debian. I set my own image during boot (so no boot messages are visible). When I start PC my own image is shown, then approx 15 seconds black screen is visible and after that it shows my ...
0
votes
1answer
50 views

Running script at startup and exiting gracefully at shutdown

I am currently running a script at startup using /etc/rc.local. The problem is that during shutdown, it does not exit gracefully. This can cause (important) data loss. My script has a SIGINT handler ...
3
votes
1answer
716 views

Debian won't shut down (Failed to start poweroff.target: Transaction is destructive)

I stumbled upon a weird behaviour of my BunsenLabs GNU/Linux. Sometimes I cannot turn off the OS. I doesn't matter whether I use sudo poweroff or the GUI approach. This is what I get after running ...
0
votes
0answers
35 views

What does system do to execute a logout?

I want to take a deep look on what system really does to execute a logout. For example, we can follow this guide to examine what system does in a boot/shutdown process. So I wonder if there are some ...
5
votes
2answers
2k views

A stop job is running for Session c2 of user

The following message appears almost everytime I shutdown my computer A stop job is running for Session c2 of user ... (1min 30s) It waits for 1min30s then continues shutdown process. I follow this ...
-1
votes
1answer
45 views

How to use crontab to shutdown linux for every saturday 3PM [closed]

Hi I want to create schedule on my Linux server to shutdown it every Saturday 5PM. How can I do it.
0
votes
3answers
37 views

Different ways of powering off

I prefer getting things done using the keyboard instead of the mouse. In Gnome to shutdown the PC, I have to click several times to shutdown my PC. I prefer to press Alt+F2 and type poweroff. My ...
0
votes
1answer
99 views

Ubantu slow boot and shutdown issue : how can I fix this?

Initially my boot time was really low, it used to boot in seconds and user processes were also up and ready to use within a minute, now for some reason my boot up really slow and also my system never ...
1
vote
1answer
43 views

When a Linux (Ubuntu) system shuts down, which processes get sent a SIGTERM?

If I start an ongoing background process A which starts a child process B, and I ask the OS to shut down, which processes get sent a SIGTERM? Is it both A and B or is it just A (assuming that A should ...
1
vote
0answers
23 views

A machine running Ubuntu or Debian shutdown on reboot. What steps would you use to find what dev/driver is causing this?

Title is pretty descriptive. I have a few of the same board that shuts down on reboot but never restarts. It does this with Debian or Ubuntu (yes yes, two sides of the same coin,) but does not do it ...
0
votes
2answers
1k views

Computer doesn't power off at shutdown/reboot (Arch)

My computer doesn't power off when I try to shutdown or reboot it, I'm forced to press the power button. At shutdown, a single _ is displayed (sometimes blinking, sometimes not). At reboot, two ...
1
vote
1answer
216 views

Disable “shutdown” and “poweroff” command in Ubuntu

I want to disable "shutdown" and "poweroff" CLI commands in Ubuntu for a specific user. How to do it?
0
votes
0answers
40 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
89 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 12:...
1
vote
3answers
49 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 ...
59
votes
6answers
6k views

Why does reboot and poweroff require root privileges? [duplicate]

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
191 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
123 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
151 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, /sbin/...
0
votes
1answer
105 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 ...
3
votes
2answers
2k 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
91 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 ...
1
vote
1answer
120 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
411 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 http://www....
0
votes
1answer
53 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
37 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
60 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
51 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
152 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 ...