in reply to Registering various app states at run-time
Be aware that /proc is 100% mounted on GNU/Linux. Other Unices don't have it mounted by default, and some of them don't implement /proc at all ...