Questions tagged [reboot]

rebooting is the process of bringing down a system in a state where it will complete reinitialise, without removing power from the system. Use this tag for question related to problems with being able to reboot a system. For problems booting into a particular installed OS, use the appropriate bootmanager tag (e.g. [grub])

465 questions
141
votes
4 answers

What is the difference between reboot , init 6 and shutdown -r now?

I just want to know difference between in reboot init 6 shutdown -r now and which is the safest and the best?
Rahul Patil
  • 24,281
  • 25
  • 80
  • 96
83
votes
9 answers

crontab's @reboot only works for root?

man 5 crontab is pretty clear on how to use crontab to run a script on boot: These special time specification "nicknames" are supported, which replace the 5 initial time and date fields, and are prefixed by the `@` character: @reboot : …
Withheld
  • 933
  • 1
  • 6
  • 6
70
votes
6 answers

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 not requiring this to have root privileges? The…
Rohan
  • 3,491
  • 9
  • 28
  • 45
69
votes
7 answers

How long has my Linux system been running?

Is there a command I can type in a terminal that will tell me the last time a machine was rebooted?
Octopus
  • 2,489
  • 6
  • 21
  • 25
63
votes
12 answers

How can I tell GRUB I want to reboot into Windows—before I reboot?

I have a dual boot Linux/windows system set up, and frequently switch from one to the other. I was thinking if I could add a menu item in one of the menus to reboot directly into windows, without stopping at the GRUB prompt. I saw this question on a…
jadkik94
  • 973
  • 2
  • 9
  • 11
61
votes
4 answers

Save entire process for continuation after reboot

I developed an algorithm for a fairly hard problem in mathematics which is likely to need several months to finish. As I have limited resources only, I started this on my Ubuntu 12.04 (x86) laptop. Now I want to install some updates and actually…
stefan
  • 1,009
  • 2
  • 13
  • 18
33
votes
1 answer

Why are reboot, shutdown and poweroff symlinks to systemctl?

In Arch Linux, if I do ls -l in /sbin, I can see that reboot, shutdown and poweroff are all symlinks to /usr/bin/systemctl. But issuing reboot, shutdown and systemctl commands obviously does not all have the same behaviour. Is ls -l not showing me…
Gradient
  • 3,579
  • 10
  • 31
  • 37
31
votes
6 answers

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.
Stormvirux
  • 2,996
  • 3
  • 21
  • 25
28
votes
3 answers

When is a reboot required?

Apart from upgrading the kernel, are there any changes to a Linux system that require a reboot? I know there are situations where a reboot makes things easier, but are there any that cannot be accomplished except with a reboot? To clarify: I'm…
Mark
  • 4,054
  • 3
  • 26
  • 39
23
votes
2 answers

Reducing shutdown timeout for "a stop job is running"

I've got node.js and pm2 installed on a Pi (Raspbian). PM2 was configured to start via pm2 startup and the init scripts it creates. Sometimes when I reboot, shutdown hangs for a few minutes on: A stop job is running for LSB: PM2 init script (... /…
Jason C
  • 1,341
  • 3
  • 13
  • 29
23
votes
1 answer

How to continue a script after it reboots the machine?

I'm writing a shell script in bash. At some point in the script, it detects that the machine needs to be rebooted before continuing. It issues: sudo reboot When the machine comes back up, there is is more work that this script needs to do. How…
Stephen Ostermiller
  • 982
  • 2
  • 11
  • 27
23
votes
5 answers

Automatically reboot, if no wifi connection for a certain time

It seems that my Raspberry Pi server loses wifi connection after a random time and is somehow not able to recover automatically. Usually a reboot done by hand resolves the problem. I would like to make it reboot automatically if there is no wifi…
clamp
  • 1,633
  • 6
  • 19
  • 31
21
votes
2 answers

Setting persistent environment variable in CentOS 7 issue

I have been trying to set environment variables that would be saved upon reboot, but without success. When I set variables using the export or setenv command, as root or any other user, it gets saved on the session until reboot. After reboot, the…
DmitryBoyko
  • 331
  • 1
  • 3
  • 11
21
votes
6 answers

Cursor freezes - keystrokes to release?

Occasionally the mouse cursor will freeze - I have to reboot. In Ubuntu is there a keystroke combination such as Ctrl+Alt+Del which would enable me to continue working without having to reboot?
Dot Ukay
  • 221
  • 1
  • 2
  • 6
13
votes
1 answer

Docker 20.10.x keeps system waiting for several minutes before shutdown or reboot

I have successfully upgraded my Debian buster to latest version (Bullseye) and after that, whenever I want to reboot or shut it down, it takes several minutes to complete while waiting for some process to finish with these messages: watchdog:…
FooBar
  • 183
  • 2
  • 8
1
2 3
30 31