Page MenuHomePhabricator

D15726.id37897.diff
No OneTemporary

D15726.id37897.diff

diff --git a/src/applications/daemon/management/PhabricatorDaemonManagementWorkflow.php b/src/applications/daemon/management/PhabricatorDaemonManagementWorkflow.php
--- a/src/applications/daemon/management/PhabricatorDaemonManagementWorkflow.php
+++ b/src/applications/daemon/management/PhabricatorDaemonManagementWorkflow.php
@@ -225,16 +225,14 @@
$config,
$this->runDaemonsAsUser);
} catch (Exception $e) {
- // Retry without sudo
- $console->writeOut(
- "%s\n",
+ throw new PhutilArgumentUsageException(
pht(
- '%s command failed. Starting daemon as current user.',
- 'sudo'));
- $this->executeDaemonLaunchCommand(
- $command,
- $daemon_script_dir,
- $config);
+ 'Daemons are configured to run as user "%s" in configuration '.
+ 'option `%s`, but the current user is "%s" and `phd` was unable '.
+ 'to switch to the correct user with `sudo`.',
+ $phd_user,
+ 'phd.user',
+ $current_user));
}
}
}

File Metadata

Mime Type
text/plain
Expires
Mon, Oct 6, 3:00 PM (2 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
9037103
Default Alt Text
D15726.id37897.diff (1 KB)

Event Timeline