QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Undocumentated feature in Photon 1.13: phshutdown |
Ref. No. |
QNX.000004296 |
Category(ies) |
Installation, Configuration |
Issue |
After installation of our product our clients must reboot e.g. to activate the changes in sysinit. We enforce this by the shutdown command in the last line of our install script. Also when we 'stop' our SCADA system we finish with a shutdown -b (also within a script) to stop all activities.
But we noticed that the shutdown command does not work when we run these scripts from Photon (screen stays dark during countdown and after reboot).
We found a command in qnx4/photon/bin called phshutdown which seems to work but it's not documentated. Will you support this in future versions (and documentate it)? Do you plan to add a -b option like shutdown -b? phshutdown does not perform a complete shutdown (kills only tasks like Fsys, Fsys.eide, Fsys.floppy). Why does it not work like shutdown? Do you have another idea to perform an automated shutdown (with and w/o reboot) under Photon?
|
Solution |
There is something wrong with the shutdown command if you are in Photon. It slays Fsys without cleaning up gracefully. This means that some of the files would still be open when the user shuts down. This could often lead to corrupt files and is not recommended.
We created the phshutdown as a graceful exit from Photon. This will be supported in future versions and it will be documented. The '-b' option will not be supported. The phshutdown is only implemented to exit Photon. In the future, it will reboot your system. |
|