Elegant Shutdown

Is there a way to shutdown a QNX system elegantly? I tried “shutdown
-b” but it goes down hard. I start MySQL and other processes in
rc.local and I would like to shut them down before I halt the system.
Is there a rc.shutdown or equivalent?

…Stephen

On 27 Feb 2004 15:35:42 GMT, Stephen Rasku wrote:

Is there a way to shutdown a QNX system elegantly? I tried “shutdown
-b” but it goes down hard. I start MySQL and other processes in
rc.local and I would like to shut them down before I halt the system.
Is there a rc.shutdown or equivalent?

…Stephen

AFAIK there is no elegant solution. We have our own shutdown scripts that
shutdown our own processes before shutting down the rest of the system.
There is no way to hook them into the QNX shutdown process so we just make
sure the users don’t have any way of getting to the native QNX shutdown
tools other than through our scripts.

Rob Rutherford

Rename shutdown as shutdown.real and then create a script called shutdown
which stops your own processes and ends by calling shutdown.real.


“Robert Rutherford” <ruzz@NoSpamPlease.ruzz.com> wrote in message
news:1he4ou2tood7z$.1s9tx7sivkc4z$.dlg@40tude.net

On 27 Feb 2004 15:35:42 GMT, Stephen Rasku wrote:

Is there a way to shutdown a QNX system elegantly? I tried “shutdown
-b” but it goes down hard. I start MySQL and other processes in
rc.local and I would like to shut them down before I halt the system.
Is there a rc.shutdown or equivalent?

…Stephen

AFAIK there is no elegant solution. We have our own shutdown scripts that
shutdown our own processes before shutting down the rest of the system.
There is no way to hook them into the QNX shutdown process so we just make
sure the users don’t have any way of getting to the native QNX shutdown
tools other than through our scripts.

Rob Rutherford