/** * print out deamon status, and detailed queue informations */ public function status() { if (DEBUG_DAEMON) { parent::status(); return; } $pid = $this->getpid(); if ($pid === False) { printf("PGQConsumer %s is not running.\n", $this->name); } else { printf("PGQConsumer %s is running with pid %d\n", $this->name, $pid); if ($this->connect() === False) { return; } $status = $this->get_consumer_info(); foreach ($status as $k => $v) { printf("%s: %s\n", $k, $v); } $this->disconnect(); } }