diff --git a/scripts/ratingEngine.php b/scripts/ratingEngine.php index 468ea43..4bfb17e 100755 --- a/scripts/ratingEngine.php +++ b/scripts/ratingEngine.php @@ -1,39 +1,39 @@ #!/usr/bin/env php init_ok) { syslog(LOG_NOTICE, 'Error: Cannot start Rating Engine, fix the errors and try again'); exit; } syslog(LOG_NOTICE, "Rating Engine started sucesfully, going to background..."); // Go to the background $d = new Daemon('/var/run/ratingEngine.pid'); $d->start(); $daemon = new socketDaemon(); $server = $daemon->create_server( 'ratingEngineServer', 'ratingEngineClient', $RatingEngine['socketIP'], $RatingEngine['socketPort'] ); syslog(LOG_NOTICE, "Rating Engine is now ready to serve network requests"); $daemon->process();