How to start a resource manager in PHab

Hi all,

What is the best way to start a self-written resource manager from a PHab
application. Is it with exec() or soething else. What is the best way to
handle resource manager anyway in Phab.

Thanks in advance,

Freddy