Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: Gert on July 17, 2008, 04:01:36 AM

Title: "signal-event reboot" vs "init 6"
Post by: Gert on July 17, 2008, 04:01:36 AM
What is the difference? Is there a difference?
Title: Re: "signal-event reboot" vs "init 6"
Post by: cactus 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.
Title: Re: "signal-event reboot" vs "init 6"
Post by: Gert 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.
Title: Re: "signal-event reboot" vs "init 6"
Post by: cactus 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.
Title: Re: "signal-event reboot" vs "init 6"
Post by: Gert 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.  :-)
Title: Re: "signal-event reboot" vs "init 6"
Post by: cactus 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.