Author Topic: A tid bit of info (reboot is not the same as init 6)  (Read 493 times)

Offline Rudge

  • Hero Member
  • *****
  • Posts: 9705
  • I'm Just A Dog.
A tid bit of info (reboot is not the same as init 6)
« on: March 22, 2013, 06:12:56 PM »
When I did my upgrade to KDE 4.10.1 synaptic instructed me to open a root console and enter "init 6".

When I shutdown via a root console I typically use "shutdown -r now"  or on rare occasions I have used the "reboot" command.

Never have I ever used "init 6". Well, this got my research cap itchy to find out what the difference really was and this is what I found...

" In Linux, the init 6 command gracefully reboots the system running all the K* shutdown scripts first, before rebooting.  The reboot command does a very quick reboot.  It doesn’t execute any kill scripts, but just unmounts filesystems and restarts the system.  The reboot command is more forceful.

So, should I use reboot or init 6?  – neither!  My advice is to use the shutdown command.  shutdown will do a similar job to init 6, but it has more options and a better default action.  Along with kicking off an init 6, the shutdown command will also notify all logged in users (logged in at a tty), notify all processes the system is going down and by default will pause  for a set time before rebooting (giving you the chance to cancel the reboot if you realize that you made a mistake).  Jolly civil.
"

http://www.vreference.com/2009/09/23/reboot-is-not-the-same-as-init-6/

Also

""reboot" is more a kernel level command and normally does not call the shutdown scripts for applications. But it will work even if you have a truncated $PATH variable.

"init 6" depends a lot of the /etc/inittab files and gurantees that the shutdown scripts will be called for each application that is defined.

Use init 6 for all normal operations.

Use reboot for problematic situations, or to force a reboot.
"

http://nuwan-asanka.blogspot.com/2012/04/init-6-vs-reboot.html

I thought it was interesting and it was all something I did not know.  ::)  ;D ;D
« Last Edit: March 22, 2013, 08:06:16 PM by Rudge »


-If you wish to make an apple pie from scratch, you must first invent the universe-  Carl Sagan

Offline agmg

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1922
  • Certified Windows Hater
For the whole world, you are someone.
For someone, you are the whole world.

Offline Rudge

  • Hero Member
  • *****
  • Posts: 9705
  • I'm Just A Dog.
Re: A tid bit of info (reboot is not the same as init 6)
« Reply #2 on: March 23, 2013, 08:00:27 PM »
Well,,,, that's embarrassing. Sorry LOL.    :-[ :-[


-If you wish to make an apple pie from scratch, you must first invent the universe-  Carl Sagan

Offline agmg

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1922
  • Certified Windows Hater
Re: A tid bit of info (reboot is not the same as init 6)
« Reply #3 on: March 24, 2013, 01:46:44 AM »
Well,,,, that's embarrassing. Sorry LOL.    :-[ :-[

It wasn't my intention to make you feel embarassed, sorry.
Just wanted to add some more info provided by other members in that topic...  :)
For the whole world, you are someone.
For someone, you are the whole world.

Offline craesz

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 983
Re: A tid bit of info (reboot is not the same as init 6)
« Reply #4 on: March 24, 2013, 09:32:45 AM »
Well,,,, that's embarrassing. Sorry LOL.    :-[ :-[

Shouldn't be. You provided more information... Before this install/upgrade I had no idea that init 6 existed or reboot for that matter. I've always used shutdown -r now. Based on the above, init 6 looks to be the better solution.
Desktop1: AMD64 8450 [3 core]; 8GB; 3.2.18-pclos2.pae.bfs; KDE
Desktop2: AMD64 5400 [8 core]; 16GB; 3.2.16-a64; KDE
Netbook: EeePC 901; Atom N270; 1GB; 2.6.33.7-pclos6.bfs; KDE


Offline Tony

  • Hero Member
  • *****
  • Posts: 1744
  • Reason_able ;)
Re: A tid bit of info (reboot is not the same as init 6)
« Reply #5 on: March 28, 2013, 09:34:14 AM »
We learn something new everyday, which is beautiful thing. I'm a bit late to this but appreciate Rudge's research.
init 6 ?
http://www.pclinuxos.com/forum/index.php/topic,114334.msg974908.html#msg974908
Personally, as I read the info about updating from 4.9.5 to 4.10.1, i was instructed to:
Quote
Note: Due to a change in the KDE 4.10 source code, a patch for QT4 had to be applied to overcome a plasma crash. For this reason, and only after the initial upgrade from 4.9.5 to 4.10.1, you must reboot your PC by opening a root-terminal and enter the command: init 6

I believe it freed the System to apply the updates comfortably.
« Last Edit: March 28, 2013, 09:36:49 AM by Tony »
*PCLOS 3.2.18-pclos2 - MiniMe 2013.x - KDE 4.10.1 - Intel(R) Pentium(R) 4 CPU 3.00GHz - 1GiB DIMM DDR 533 MHz RAM  = SHABANG ! ;) *Software Updates

Offline pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2848
    • other projects...
Re: A tid bit of info (reboot is not the same as init 6)
« Reply #6 on: March 28, 2013, 09:46:41 AM »
too much fuss about nothing: due to the changes in plasma in 4.10.1 the graphical logout or reboot  does not work, so you use "init 6" from a terminal to achieve that, after the reboot the new configs are loaded and all is back to normal, that is all.  ;)
-p.

Offline Tony

  • Hero Member
  • *****
  • Posts: 1744
  • Reason_able ;)
Re: A tid bit of info (reboot is not the same as init 6)
« Reply #7 on: March 29, 2013, 09:12:52 AM »
With great respect pinoc, I felt I said it very succinctly:
Quote
init 6 ?
I believe it freed the System to apply the updates comfortably.
*PCLOS 3.2.18-pclos2 - MiniMe 2013.x - KDE 4.10.1 - Intel(R) Pentium(R) 4 CPU 3.00GHz - 1GiB DIMM DDR 533 MHz RAM  = SHABANG ! ;) *Software Updates

Offline menotu

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 15316
  • ┌∩┐(◕_◕)┌∩┐
Re: A tid bit of info (reboot is not the same as init 6)
« Reply #8 on: March 29, 2013, 09:25:51 AM »
going off at a tangent.........

init is also (wrongly) used in the UK as slang (laziness) for isn't it. which I believe is short for Is it not? ??
PCLinuxOS 32bit KDE 4.10.1; kernel-3.4.11-pclos1.bfs & 64bit 3.2.18bfs; NVidia GeForce 8400GS 1GB 310.19 driver

Sony Vaio SVE1513A4ESI Laptop, Intel Core i5, 2.6GHz, 6GB RAM, 750GB, 15.6" Intel HD Graphics 4000

Offline Tony

  • Hero Member
  • *****
  • Posts: 1744
  • Reason_able ;)
Re: A tid bit of info (reboot is not the same as init 6)
« Reply #9 on: March 29, 2013, 11:41:10 AM »
ooh, very tangential menotu; plus I'm really going to 'muck up' by digressing that "init" is a favourite word of mine, when used in the phrase, "It's a funny old world init." I best leave it alone, ...  :-[
*PCLOS 3.2.18-pclos2 - MiniMe 2013.x - KDE 4.10.1 - Intel(R) Pentium(R) 4 CPU 3.00GHz - 1GiB DIMM DDR 533 MHz RAM  = SHABANG ! ;) *Software Updates