The tag has no wiki summary.

learn more… | top users | synonyms

31
votes
4answers
29k 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?
24
votes
4answers
3k 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. ...
22
votes
3answers
2k views

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 ...
14
votes
1answer
2k 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 ...
14
votes
4answers
5k 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 ...
10
votes
4answers
479 views

How do I shutdown, reboot and logout the system from the command-line?

I would like to do that using the command-line, because sometimes my computer freezes and I need to force a shutdown (I know it's not good to the hardware). And: What is the difference between Halt ...
9
votes
1answer
257 views

Don't let users reboot while root's logged in

On my system users can reboot and shut down the system. From time to time I need to update software (or do anything else) and I don't want users to reboot/shutdown the system until I've finished. Is ...
6
votes
3answers
741 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] ...
6
votes
1answer
679 views

Meaning and commands for Ctrl+Alt+Del

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
159 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 ...
5
votes
3answers
692 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?
5
votes
1answer
355 views

how to reboot a frozen FreeBSD server from the serial console?

Linux has the "magic sysrq key" to reboot frozen machines remotely, and it works over the serial console, but what about FreeBSD? Is there a way to send a "control-alt-delete" to FreeBSD servers on ...
5
votes
1answer
63 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 ...
5
votes
4answers
4k views

iptables rules not reloading on CentOS 6.x

I have one single ipset added to my iptables on a CentOS 6.x box and this rule is lost when the machine reboots. I've found this answer showing how to make a Ubuntu system reload the iptables rules ...
5
votes
2answers
607 views

Is it possible to execute a script as first at shutdown/reboot on Debian?

I am currently trying to register a script (located in the /etc/init.d) in a way that makes this script being executed as the first script/programm at shutdown/reboot (change to running level 0 or 6). ...
5
votes
2answers
535 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 ...
4
votes
2answers
2k 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 ...
4
votes
1answer
349 views

Why do SELinux policies require a system restart?

When changing SELinux policies, I've been reading that you're required to restart the system. What changes would require this? Are there certain policy changes that would not require a restart?
3
votes
2answers
258 views

How to safely shutdown computer during boot sequence?

Due to a bug my computer has stopped in the middle of the boot sequence, just waiting. If I type anything, it prints stuff like ^[[B. I do not want to damage the files on the computer by pressing the ...
3
votes
7answers
724 views

Rebooting fails randomly

That is, the following command fails at times: $ sudo reboot The last message on terminal, after which the machine gets stuck, requiring a power cycle: Restarting system. I tried the following ...
3
votes
1answer
763 views

When can one reboot from inside a chroot environment?

Sometimes when I chroot into some folder , I could use reboot to reset my box, but sometimes I can't. So I want to know why I could do that sometimes and why. UPDATE The chroot environment is ...
3
votes
1answer
157 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+Supr to reboot, Ctrl+Alt+Backspace to kill the X Window System nor Ctrl+Alt+F1 to open a new shell. I've read ...
3
votes
1answer
170 views

Rolling your own init: How to shutdown/restart?

After reading this answer, I thought it would be funny to roll my own init on Python, so I wrote this in /init-python. #!/usr/bin/python3 import os import subprocess # Make / writable! ...
3
votes
2answers
73 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, also in ...
3
votes
1answer
587 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.
3
votes
1answer
782 views

How to check will my computer is going to reboot(or shutting down)?

When I send a reboot command(or shutdown) command to a Linux machine does it keeps that messages at somewhere and can I query it. I.e. I will send a reboot command and after that I will run another ...
3
votes
1answer
637 views

Does setting the system time back impair logrotate operation?

I'm working on an embedded linux system where the root filesystem is mounted from an SDcard. Although many systems like this just mount /var/log on a ramdisk, I'd like to save the logs to the SDcard ...
2
votes
2answers
550 views

Is there a way to tell how many times my computer has rebooted in a 24 hour period?

I was doing a 24 hour code-a-thon and had to reboot numerous times and was wondering if there was a way to tell exactly how many the computer was rebooted or crashed.
2
votes
2answers
36 views

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

Do I need to stop processes like mysql or apache before “reboot”?

I have been wondering if issuing a reboot command safely stops running LAMP processes like MySQL or Apache?
2
votes
3answers
1k views

Restart all services without reboot

I do some group permission changes on the CentOS server, And then need restart all services. How can I restart all services safely without rebooting?
2
votes
1answer
721 views

Apache boot without asking for passwd

So I'm maintaining a server which has a verified SSL certificate setup, however there is a password on the private key and so whenever apache is reboot, we get a message asking for the password. This ...
2
votes
1answer
38 views

What is the use of “magic arguments” in Linux reboot system call?

As I was reading Linux source code, and more specifically the system calls code, I came across sys_reboot implementation: http://lxr.free-electrons.com/source/kernel/reboot.c#L199. 199 ...
2
votes
1answer
36 views

Why does Alt+SysRq+B not always trigger while REISU do?

On many different machines, when I come across a lockup, I often use Alt+SysRq+REISUB to reboot without too much losses. But I often noticed that although REISU commands work even when I just hold ...
2
votes
1answer
369 views

Crunchbang hibernate rebooted system?

I installed the latest stable 64bit Crunchbang backport. When I tried to hibernate it last night, it rebooted into the locked state - when I logged back in all my windows/apps were as they were again. ...
2
votes
1answer
29 views

Solved - Solaris 10 - Is it possible to reboot a system from a startup script?

I have a Solaris 10 test guest logical domain (LDom). I plan to have the network on this be reconfigured before rebooting using a startup script in /etc/rc0.d. At the moment, when the system boots, ...
2
votes
1answer
41 views

Reboot when there is a hardware failure without physical access to machine?

I'm getting this error message whathever I do: $ sudo reboot bash: /usr/bin/sudo: Input/output error $ reboot bash: /sbin/reboot: Input/output error It's a hardware failure according to this ...
2
votes
1answer
829 views

Linux VM's disk went read-only = no choice but reboot?

I have several Linux VMs on VMware + SAN. What happened A problem occured on the SAN (failed path) so that for some time, there were I/O errors on the Linux VMs drives. When the path failover had ...
2
votes
1answer
57 views

How do I identify on my system after successful boot. weather it was crash or was it a shutdown or reboot or something else?

Depending on the restart of the system, I need to make my application taking some follow up. my system is get restarted as following: my self as system admin rebooting sudo init 6 or sudo reboot my ...
2
votes
1answer
178 views

How to customize logout options under Kubuntu

I'm running a machine with Kubuntu and Windows XP in dual-boot. I recently learned about the very useful grub-reboot command, and id like to know if it is possible to customize the logout options ...
2
votes
0answers
218 views

gnome-settings-daemon not saving Settings after reboot; Mint 14 XFCE

I am running Linux Mint 14 with xfce on my Asus UX31A and switched to gnome-settings-daemon, because this way all the function keys work out of the box. Disabled XFCE Volume Daemon as advised here: ...
2
votes
1answer
202 views

CentOs eth2 wont start on reboot

I have Cent OS 6.4 inside my virtualbox with two ethernet devices. One is connected to the internet with NAT, the other is connected to the internal network. here is my eth2 config file cat ...
1
vote
2answers
523 views

Warn users that the system is going down for a reboot

I'm new to linux server administration, and I wonder how you would warn users that the system is going down for a restart. According to LPIC1 Training here: ...
1
vote
1answer
83 views

How do I power down on reboot?

I am programming for a Linux ARM device and have some situations where I need to reboot the device after a user prompt. Whenever I run reboot -f or shutdown -r now though, the system starts up with a ...
1
vote
2answers
2k views

Determine if reboot is required to update kernel?

I am running a server which runs on CentOS with cPanel (latest version) and I have it set to automatically update using yum. Since it needs to be rebooted in order to update the kernel (and possibly ...
1
vote
3answers
1k views

Restoring Windows XP from grub

Previously I had a dual boot with Windows XP and Fedora. I have deleted Fedora and extended the C drive using Mini Tool Partition Wizard. Then I restarted the system with the Windows XP bootable CD. ...
1
vote
1answer
291 views

How to start java application after machine reboot?

I'm wondering if there is easier way to start java application (just tomcat server) after machine has been rebooted? Possible answers: Add the application as a service and then add it using ...
1
vote
1answer
58 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 ...
1
vote
1answer
76 views

Debian, nonroot, cron, bash script and rebooting at specific time

As nonroot user, how can I schedule a reboot every day at 4:30am? 30 04 * * * /home/user/scripts/reboot.sh As a nonroot normal user, I'm sure the system won't allow me to use the reboot command. ...
1
vote
1answer
44 views

Is there a way to check which process terminates first during reboot

Assuming I have 2 processes running. Is there any way for me to check which process terminates first during reboot/shutdown? From this link, it tells about appending boot to a file. Yet, I still don't ...