0

In one of my linux machines, when i give reboot command at the shell command prompt then press enter, i get another command prompt and then the system reboots.

$reboot
$

But in one of my office Linux machines, when i give the reboot command, it suddenly reboots without showing another shell command prompt

What could be the reason for this? I need the first behavior to be present in my office machine also. Kindly tell me where i should tweak my office machine.

Thanks

LinuxPenseur
  • 443
  • 1
  • 6
  • 16
  • Just curious, why do you need this behavior? Also, are the linux distributions different or are they all the same? What flavor of linux are you running? – jmort253 Jan 03 '11 at 12:24
  • I am also curious why such behavior occurs. I thought if there is some reason, i should find it. – LinuxPenseur Jan 03 '11 at 12:28

1 Answers1

2

I assume your first describes linux box has a timeperiod set to wait before doing the actual reboot. To get to now more about the shutdown/reboot process in your linux distro, take a look at man shutdown. It will explain, where the configuration is placed.

In my distribution, SUSE, these are some files which are part of the shutdown process:

  • /etc/inittab
  • /etc/init.d/halt
  • /etc/init.d/reboot
Christian
  • 4,703
  • 2
  • 24
  • 27
  • +1 Correct and consider that the **reboot** command will normally call a **shutdown -r**, that will send a SIGTERM to all the processes. This will give a bit of time to exit cleanly (and here the behavior you experience at home). – tmow Jan 03 '11 at 12:59