Koozali.org: home of the SME Server

"signal-event reboot" vs "init 6"

Offline Gert

  • *****
  • 208
  • +0/-0
    • http://www.huge.co.za
"signal-event reboot" vs "init 6"
« on: July 17, 2008, 04:01:36 AM »
What is the difference? Is there a difference?

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: "signal-event reboot" vs "init 6"
« Reply #1 on: July 17, 2008, 08:22:07 AM »
What is the difference? Is there a difference?
Yes the default run level of SME Server is not 6 but 7, besides that a reboot means a reload of BIOS and such as well, which a init x would not do.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Gert

  • *****
  • 208
  • +0/-0
    • http://www.huge.co.za
Re: "signal-event reboot" vs "init 6"
« Reply #2 on: July 17, 2008, 08:59:25 AM »
I think your'e wrong. I know the default run level is 7, but the commands "init 6" and "signal-event reboot" seems do to the same thing, reboot the server. both commands will then reload the bios and such.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: "signal-event reboot" vs "init 6"
« Reply #3 on: July 17, 2008, 09:03:27 AM »
I think your'e wrong. I know the default run level is 7, but the commands "init 6" and "signal-event reboot" seems do to the same thing, reboot the server. both commands will then reload the bios and such.
I suggest you stick to the event as this will most likely do something more, at least it nicely stops the WAN network first at the moment, but perhaps more will be tight into it later... SME Server is not you average linux machine, so your best bet is to stick to the SME Server commands and events and not use the 'normal' linux stanza.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Gert

  • *****
  • 208
  • +0/-0
    • http://www.huge.co.za
Re: "signal-event reboot" vs "init 6"
« Reply #4 on: July 17, 2008, 09:11:48 AM »
Quote
I suggest you stick to the event as this will most likely do something more
not at the moment.

Code: [Select]
at least it nicely stops the WAN network first at the momentnope, it doesn't. the file /etc/e-smith/events/reboot/services2ajust/wan is a symbolic link to /etc/e-smith/events/reboot/services2adust/stop wich does not exist and thus is not doing anything.

Code: [Select]
but perhaps more will be tight into it later... SME Server is not you average linux machine, so your best bet is to stick to the SME Server commands and events and not use the 'normal' linux stanzaYes, I couldn't agree more.  :-)

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: "signal-event reboot" vs "init 6"
« Reply #5 on: July 17, 2008, 12:50:18 PM »
not at the moment.

Code: [Select]
at least it nicely stops the WAN network first at the momentnope, it doesn't. the file /etc/e-smith/events/reboot/services2ajust/wan is a symbolic link to /etc/e-smith/events/reboot/services2adust/stop wich does not exist and thus is not doing anything.
No, but that is common... have a look in other events. Those symlinks are used to control services and do not link to other files.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)