/** * Note that this functions cannot be used to fully determine the status of the service * Using screen we can determine the actuall status. * The request is performed in a synchronized manner * @return boolean if the status in the db indicates that the service is stopped */ function isServiceStopped() { return getServiceStatus() == 0; }
/********************************************************* * Eworx S.A.- 2012 * @Author kp@eworx.gr * EFWEB-596 R Resources Management Layer (RRML) * File shows the overall service status **********************************************************/ require_once "settings.php"; require_once "db/settings.php"; require_once "db/RRML.php"; echo '<h2>RRML Service Status</h2><hr/>'; echo '<h4>Screen R Instances : </h4>'; echo '<pre>'; require_once "created.php"; echo '<hr/><h4>Db status : </h4><pre>'; echo getServiceStatus(); echo '</pre>'; echo '</pre><hr/>'; echo '<h3>R Instances db status</h3>'; echo '<pre>'; var_dump(getRInstancesStatus()); echo '</pre>'; ?> <hr/> <ul> <li>Status [ 0] = Stopped or Used</li> <li>Status [-1] = Initializing </li> <li>Status [ 1] = Initialized or Available</li> </ul> <hr/>