a command to turn off or reboot the system

learn more… | top users | synonyms

-1
votes
1answer
35 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 ...
0
votes
0answers
7 views

Change Alt + F4 behavior in Elementary OS [migrated]

I am afraid this would be hard to achieve however I'll try to ask. I was used from other OSes like Win or other distros that when you have multiple applications opened and you want to know shutdown ...
4
votes
1answer
64 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
25 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
67 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
147 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
30 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
41 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
60 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
28 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
83 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
269 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 ...
23
votes
3answers
3k 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
159 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
253 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
65 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
91 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 ...
0
votes
0answers
203 views

Suspend option disappear from shutdown dialog on Mint 17.1 Cinnamon

Previously I have a "Suspend" option when I open shutdown dialog, not sure why (probably because I did a apt-get upgrade I found the "suspend" option has gone: Another thing is even I set my power ...
3
votes
1answer
71 views

How to poweroff headless machine using a script

I have a Java application that starts automatically when the headless machine (Ubuntu 14.04 Server) boots and runs as a user. When the application is finished I need it to execute a script to ...
4
votes
1answer
67 views

How to protect against purge of bash history?

Following the answer: When closing multiple bash instances at the same time, there is a known race condition that may cause the history to be cleared. This occurs because there is no locking ...
0
votes
0answers
70 views

Why doesn't Linux shutdown cleanly?

I'm running Linux Mint with LXDE on Dell Inspiron 1501. Whenever I issue poweroff command, or reboot or shutdown the computer via the graphical menus, it doesn't seem like a clean shutdown. In ...
1
vote
0answers
101 views

Debian wheezy - hanging on shutdown

My debian system hangs when I'm trying to shutdown/reboot. It hangs on: kvm: exiting hardware virtualization (infinitely blinking white cursor) I've tried to shutdown by gui and by ...
0
votes
2answers
103 views

How to escape from command line interface in fedora21?

I was stuck in command line interface of Linux Fedora 21. I don't know how to get to the GNOME. I forced my laptop to shutdown by hitting the power button several times. Now I really want to know how ...
1
vote
1answer
137 views

How to turn off scroll lock LED, indicating keyboard layout, when the PC is turned off

I edited the file /etc/X11/xorg.conf.d/90-keyboard-layout.conf: Section "InputClass" Identifier "keyboard-all" MatchIsKeyboard "on" MatchDevicePath "/dev/input/event*" Driver "evdev" ...
0
votes
0answers
137 views

Acer Aspire v5 571 Power off reboots Arch linux

Everytime I try to power off my arch linux it will turn off and reboot. I assume the reasoning why it does this is because the usb ports don't turn off and it somehow turns it back on. I was trying ...
1
vote
1answer
99 views

Is there any command in linux which will force linux machine to not shut-down

I have a very important process which is having a Queue, In Queue i'm storing important data and when if someone trap that process it must have to process the data which is there in the Queue after ...
2
votes
1answer
108 views

Why doesn't `shutdown now` (with no other arguments) run init scripts?

I'm running Rasbpian on my Pi, and I have a script in /etc/rc0.d (or more precisely, a symlink to /etc/init.d/myscript.sh) that does some GPIO output to notify the user that power can be shut off. If ...
1
vote
1answer
147 views

SSD dedicated to swap-only fails on Debian or Ubuntu

It did not happen to me yet, but if I dedicate a single SSD (non-RAID) to swap-ONLY and the server system is using it to full capacity - what happens next? How am I to recover, assuming I have an ...
5
votes
1answer
206 views

Configure power button to shutdown on Debian/Mac Mini G4

I use Debian/PPC on an old Mac Mini G4, it currently serve as a DLNA server (UPnP), no mouse or keyboard plugged. I would like that my power button also serves to shutdown the box. Currently it does ...
2
votes
0answers
151 views

Server shutdown suddenly [closed]

One of our production server shutdown suddenly for unknown reason. I've checked the logs and found this: init: tty (/dev/tty5) main process (2399) killed by TERM signal Dec 7 12:02:32 rh ...
2
votes
1answer
81 views

Right way of running a root task/program at background

I'm writing a program that needs to run at the background as root. (for any user) To do this I used the /etc/rc.local file. And it seems to work. The problem that I am experiencing is, when a ...
2
votes
0answers
163 views

Properly power down SSD during shutdown

I recently got a Samsung SSD. I have debian wheezy installed on it. I carry it around in a USB enclosure and boot both my work and home computers from it. How can I ensure that the system properly ...
2
votes
1answer
107 views

Shutdown script seems to be executed twice

I have a small backup bash script that I wrote for my computer at work. I have copied the script into /etc/rc0.d/ and called it K01backup so it is executed before anything else upon shutdown. It backs ...
0
votes
1answer
68 views

Shutdown so fast on iMac

I'm using Ubuntu 14.04 on iMac 27 in dual boot with OSX via rEFInd. It works nice but when I click to shutdown the Ubuntu it is so quickly and the screen becomes black in 1 or 2 seconds. So I can ...
1
vote
1answer
124 views

Why does my script does not run in runlevel 0?

I made a script with following LSB header #! /bin/sh ### BEGIN INIT INFO # Provides: updateservice # Required-Start: $local_fs $time $network $named $syslog # Required-Stop: $local_fs ...
7
votes
5answers
1k 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 ...
0
votes
1answer
200 views

how to reboot multiple computer using bash loop from the txt file

can anyone knows how to reboot computer in just one line code of bash (by looping itself). The details will be get from the text file which are the IP Address of each computer. When the script gets ...
1
vote
1answer
54 views

On shutdown, do un-mounting drives happen before shutdown signal handling?

So based on my understanding of the Unix/Linux shutdown process (which is highly limited I admit), I think at some point these steps happen: 1. mounted drives get unmounted 2. a termination signal ...
2
votes
1answer
180 views

shutdown program doesn't terminate after scheduling a shutdown

I'm having a bit of trouble with my home server (running Debian 7.7). When trying to schedule a shutdown, the following occurs: serverbox:~ $ sudo shutdown -h +10 Broadcast message from ...
1
vote
0answers
447 views

system won't poweroff, restarts with :“Synchronizing SCSI cache”

Running Debian testing, after a system upgrade a while back my machine started to refuse to power down. It hangs with: Synchronizing SCSI cache Waits a few seconds, and then reboots itself. It ...
3
votes
0answers
81 views

Bad/strange USB device issue: failed to shutdown/restart

On a fresh Arch Linux installation with Intel i7 processor and an Nvidia graphics card, I noticed during boot log messages related to a usb device filled the screen before it reached the graphical ...
18
votes
4answers
2k views

Is there a fastest way to shutdown the system?

Or is shutdown -h now the fastest it can get? I look for some syscall or similar that will allow to skip lots of the stuff done prior to shutdown (in particular to care about the running proccesses). ...
3
votes
1answer
92 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 & ...
3
votes
3answers
251 views

How do you prevent a DHCP release during shutdown?

I am currently using Ubuntu 14.04, but expect this to be applicable for different distros. I would like to prevent a DHCP release during shutdown, and opt for either the lease to expire or for a DHCP ...
1
vote
0answers
500 views

RTC is not saving time after hwclock

So I'm having quite a bit of trouble trying to get my system to set the hardware clock's time. Here is what I did just now, everything has worked, right? The first and last command seem to indicate ...
4
votes
1answer
111 views

How to get system to shutdown when Xorg is quit?

I installed nodm, so that Debian starts Xorg and a window manager immediately after booting, without requesting any password and without a login. How can I similarly setup Debian to shutdown the ...
0
votes
1answer
190 views

How to prevent from automatic reboot after shutdown?

I have a problem with shutting down my systems. When I shutdown my laptop everything looks normal but after few seconds it powers on by itself. I tried to shut it down through terminal with "shutdown ...
0
votes
2answers
86 views

How to create a promptless Linux GUI shutdown script?

I want to shutdown my Linux system using a script from GUI: shutdown.sh #!/bin/bash init 0 This script asks me a question. I need a shutdown script without asking any question. Note that my GUI ...
1
vote
1answer
156 views

Show shutdown messages from last shutdown [duplicate]

Where does Linux store the shutdown messages from last shutdown?
1
vote
0answers
118 views

Triggering a server to shutdown in receiving a signal via serial port (RS232)

I'm a fresh graduate (Electronics & Commn) and want to start my career in linux administration. I'm using a Ubunutu 14.04 server machine for R&D (with ups). Now my scenario is whenever main ...