Exemplo n.º 1
0
 protected function register()
 {
     if ($fileConfig = FileConfig::getDefault()) {
         preg_match('/^(.*?)\\s*(|:\\s*(.*?))$/', $fileConfig->get('www.user', 'www-data:www-data'), $userMatch);
         $this->worker_user = $userMatch[1];
         $this->worker_user_group = $userMatch[3] ?? '';
     }
 }
Exemplo n.º 2
0
 protected function register()
 {
     if ($fileConfig = FileConfig::getDefault()) {
         $this->pid_file_save_path = $fileConfig->get('daemon.pid', '/var/run/aurora.pid');
         $masterUser = Utils::getUserGroupFromColonStyle($fileConfig->get('daemon.user', 'nobody:nobody'));
         $this->master_user = $masterUser['user'];
         $this->master_user_group = $masterUser['group'];
         $workerUser = Utils::getUserGroupFromColonStyle($fileConfig->get('www.user', 'www-data:www-data'));
         $this->worker_user = $workerUser['user'];
         $this->worker_user_group = $workerUser['group'];
     }
 }