Created an init.d script for the pd daemon, edit pd.php to have start and stop signals
Added CMS functions to communicate with the daemon.