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])

Filter by
Sorted by
Tagged with
8
votes
1answer
1k views

How does gnome reboot without root privileges?

I am reading the book Linux kernel development, in chapter 5 "System Call Implementation" page 77 says For example, capable(CAP_SYS_NICE) checks whether the caller has the ability to modify nice ...
102
votes
4answers
293k views

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?
65
votes
8answers
329k views

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 ...
33
votes
9answers
55k views

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 ...
54
votes
4answers
21k views

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. ...
28
votes
1answer
12k views

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 ...
7
votes
1answer
3k views

How to have Linux wipe/randomize/sanitize RAM at shutdown?

For mysterious reasons I still double boot sometimes into Windows. My problem is that I fear that information may leak because the RAM memory is accessible to Windows. (the Linux partitions are ...
4
votes
2answers
5k views

What is the practical difference between `systemctl start reboot.target` and `systemctl reboot`?

There are two documented differences between start reboot.target and reboot. But start reboot.target is what is triggered by ctrl-alt-del.target. Does it matter that ctrl-alt-del.target will omit --...
1
vote
1answer
2k views

Why `journalctl --list-boots` doesn't match what `uptime` and `who -b` report?

Here's a test script I used: last_reboot=$(last reboot | grep 'still running' | awk '{for (i=5; i<=NF; i++) printf $i FS}' | awk '{for (i=1; i<=NF - 2; i++) printf $i FS}') if [ "$last_reboot" ]...
49
votes
7answers
98k views

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?
18
votes
1answer
25k views

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 ...
16
votes
2answers
28k views

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

“system is going down for reboot now”

I am connected to a beagleboard via tty and I suddenly see this message : Broadcast message from root@arm (unknown) at 11:40 ... The system is going down for reboot NOW! [ 143.036193] ...
5
votes
2answers
11k views

How to execute scripts in /usr/lib/systemd/system-shutdown/ at reboot or shutdown?

According to this answer and this bug report one can simply drop your script in /usr/lib/systemd/system-shutdown/ or for Debian in /lib/systemd/system-shutdown/ to have it executed at reboot or ...
4
votes
2answers
114 views

What forces a reboot?

I experience that my Ubuntu Linux requires a restart every now and then and also that it needs restart more often than in the old days (maybe it's because it updates more). I understand that ...
3
votes
1answer
1k views

Restart system if it runs out of memory?

I need to run some memory heavy tests in a remote computer through SSH. Last time I did this, the computer stopped responding, and it was necessary for someone to physically reboot it. Is there a way ...
7
votes
3answers
2k views

What is the meaning and command executed on Ctrl+Alt+Del in Linux?

In my gnome GUI desktop of Ubuntu 12.04, Ctrl+Alt+Delete will log out instead of rebooting. But I was told that Switching to a text-based virtual console and pressing Ctrl+Alt+Delete will ...
6
votes
1answer
3k views

Why isn't “REISUB” working on Debian?

I'm using Debian 'Jessie'. Sometimes my computer freezes, and then I can't use Ctrl+Alt+Del to reboot, Ctrl+Alt+Backspace to kill the X Window System nor Ctrl+Alt+F1 to open a new shell. I've read in ...
4
votes
4answers
3k views

Unable to SSH into Google Cloud Server after Reboot

I was learning to configure a Debian server and familiarising myself with the common command lines. However, after executing the reboot command in SSH, my subsequent SSH connections were refused and ...
6
votes
2answers
4k views

How can I ensure only the root user have the right to halt/reboot the system?

CentOS Linux by default allows all users to have permission to "halt" & "reboot" the system by using the commands halt and reboot. How can I configure my system so that only the root user has the ...
5
votes
1answer
1k views

Is the `reboot` command safe to use?

The reboot command appears to work differently depending on the distribution. For example on Ubuntu/Debian and CentOS it shuts down services first while on Arch Linux it reboots immediately (at least ...
5
votes
2answers
4k views

Remote executing Magic Sys Rq

Is it possible to execute Magic SysRq keys on remote machine, using SSH? For example I'm trying to run like this: xdotool key Alt+Sys_Req+H But I do not see any help in console, neither in /var/log/...
4
votes
0answers
977 views

Fedora 20 freezes on reboot and poweroff

This freeze happens when I try to reboot, shutdown -r now, poweroff, shutdown -h now etc. One time it freezes on my desktop image, and the other time it freezes on the fedora logo. I am dual booting ...
3
votes
2answers
139 views

wget saving files as emply plain text files on boot

I have a bash script in crontab that runs @reboot: The script itself contains a wget command to pull and download a file from the internet When I run my script after signing in and opening the ...
3
votes
0answers
346 views

Limit system reboot burst

Systemd allows to automatically restart services if they have crashed. To prevent indefinite services restart it uses @StartLimitInterval@ and @StartLimitBurst@ variables. Moreover, I can reboot ...
2
votes
0answers
1k views

How does auto reboot happen?

For no apparent reason, my machine is rebooting. last reboot brings lines like this: reboot system boot 3.13.0-24-generi Tue Dec 9 18:57 - 19:09 (00:11) reboot system boot 3.13.0-24-...
2
votes
1answer
155 views

What is the necessity of the commands `halt --poweroff` , `halt --reboot`, `poweroff --reboot` and `reboot --poweroff`?

In UNIX the following commands are present: halt --poweroff //does poweroff halt --reboot //does reboot poweroff --reboot //does reboot reboot --poweroff //does poweroff However the ...
2
votes
1answer
153 views

How and when is the command string arg to reboot() with LINUX_REBOOT_CMD_RESTART2 executed?

The manpage of reboot() says LINUX_REBOOT_CMD_RESTART2 (0xa1b2c3d4; since Linux 2.1.30). The message "Restarting system with command '%s'" is printed, and a restart (using the command ...
1
vote
1answer
830 views

systemd “oneshot” service to trigger poweroff

Show a systemd Type=oneshot service which triggers a system power-off. For example this could be used for sigpwr.target, to avoid the problem that sigpwr.target is not started with the job mode ...
0
votes
1answer
10k views

Find out what caused my Ubuntu rebooting?

My Ubuntu 14.04 on Thinkpad T400 just rebooted automatically. Before that, my screen just became unresponsive. My memory and swap were mostly used, mainly by webpages opened in Chrome and some pdf ...
0
votes
1answer
2k views

How to umount /var /usr safely on systemd without reboot

I have a Linux server on a VM which the reboot does work as powering off due to misconfiguration of a third part provider. I do not have access to VM configuration. The person who installed the ...
0
votes
1answer
340 views

Why is FreeBSD rebooting during installation?

I have a samsung laptop which is around 1.5 years old. I am currently running arch linux and have run various linux distributions successfully in the past. The hardware is not obsolete and the ...
-4
votes
1answer
415 views

VMWare error with Kali Linux

I have installed Kali Linux 2017.1 x64 in VMware Workstation Pro 12.5.6 along with the VMware tools (Is that the culprit?). My host is Windows 10 Creators Update 1703 build 15063.322 I have been ...