Ejemplo n.º 1
0
 /**
  * Sets up OS instance
  *
  * @return boolean
  */
 protected static function _osObjSetup()
 {
     // Create Option Object if nescessary
     if (!self::$_osObj) {
         self::$_osObj = System_Daemon_OS::factory();
     }
     // Still false? This was an error!
     if (!self::$_osObj) {
         return self::emerg('Unable to setup OS object');
     }
     return true;
 }
Ejemplo n.º 2
0
 /**
  * Sets up OS instance
  *
  * @return boolean
  */
 protected static function _osObjSetup()
 {
     // Create Option Object if nescessary
     if (self::$_osObj === false) {
         self::$_osObj = System_Daemon_OS::factory();
     }
     // Still false? This was an error!
     if (self::$_osObj === false) {
         self::log(self::LOG_EMERG, "Unable to setup OS object. ");
         return false;
     }
     return true;
 }