Differential D14066 Diff 34702 src/applications/aphlict/management/PhabricatorAphlictManagementWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/aphlict/management/PhabricatorAphlictManagementWorkflow.php
Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Lines | if ($pid) { | ||||
pht( | pht( | ||||
'Unable to start notifications server because it is already '. | 'Unable to start notifications server because it is already '. | ||||
'running. Use `%s` to restart it.', | 'running. Use `%s` to restart it.', | ||||
'aphlict restart')); | 'aphlict restart')); | ||||
} | } | ||||
if (posix_getuid() == 0) { | if (posix_getuid() == 0) { | ||||
throw new PhutilArgumentUsageException( | throw new PhutilArgumentUsageException( | ||||
pht( | pht('The notification server should not be run as root.')); | ||||
// TODO: Update this message after a while. | |||||
'The notification server should not be run as root. It no '. | |||||
'longer requires access to privileged ports.')); | |||||
} | } | ||||
// Make sure we can write to the PID file. | // Make sure we can write to the PID file. | ||||
if (!$this->debug) { | if (!$this->debug) { | ||||
Filesystem::writeFile($this->getPIDPath(), ''); | Filesystem::writeFile($this->getPIDPath(), ''); | ||||
} | } | ||||
// First, start the server in configuration test mode with --test. This | // First, start the server in configuration test mode with --test. This | ||||
▲ Show 20 Lines • Show All 185 Lines • Show Last 20 Lines |