aboutsummaryrefslogtreecommitdiff
path: root/src/zen/cmds/service_cmd.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Enable cross compilation of Windows targets on Linux (#839)Stefan Boberg2026-03-161-2/+2
| | | | | | | This PR makes it *possible* to do a Windows build on Linux via `clang-cl`. It doesn't actually change any build process. No policy change, just mechanics and some code fixes to clear clang compilation. The code fixes are mainly related to #include file name casing, to match the on-disk casing of the SDK files (via xwin).
* ZenServerProcess API changes (#719)Stefan Boberg2026-01-191-0/+1
| | | | | | | This refactor aims to improve the `ZenServerProcess` classes by making them useful for managing child zenserver instances in more scenarios than just automated tests. This involves changing some functions to not talk about "test directory" and instead use "data directory" etc As a consequence of the API changes, some tests have changed accordingly. The code includes som reference to the "hub" mode but there is not yet any other code using this mode, it's just included in this PR to simplify future merges.
* Rename IsElevated to RequiresElevationLiam Mitchell2026-01-151-9/+9
|
* Implement final changes required for daemon mode on MacLiam Mitchell2026-01-071-1/+5
|
* Make files writeable after full service install to avoid issues when ↵Liam Mitchell2025-11-171-0/+4
| | | | attempting to update from a read-only source such as p4
* Set ownership of service executables to the service user on Linux (#489)Liam Mitchell2025-09-081-0/+44
| | | - Bugfix: Linux only, set ownership of installed files to specified user when using `zen service install --full --user`
* refactor zen command return value handling (#487)Dan Engelbrecht2025-09-051-80/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Improvement: Use consistent language for command line argument parsing errors - Improvement: Changed zen command parsing errors to output help first and error last to make it easier to spot the error - Improvement: Refactor zen command return codes to conform to valid Linux range (0-255) kSuccess = 0, kOtherError = 1, kBadInput = 2, kOutOfMemory = 16, kOutOfDisk = 17, kAssertError = 70, kHttpOtherClientError = 80, kHttpCantConnectError = 81, kHttpNotFound = 66, // NotFound(404) kHttpUnauthorized = 77, // Unauthorized(401), kHttpSLLError = 82, kHttpForbidden = 83, // Forbidden(403) kHttpTimeout = 84, // RequestTimeout(408) kHttpConflict = 85, // Conflict(409) kHttpNoHost = 86, kHttpOtherServerError = 90, kHttpInternalServerError = 91, // InternalServerError(500) kHttpServiceUnavailable = 69, // ServiceUnavailable(503) kHttpBadGateway = 92, // BadGateway(502) kHttpGatewayTimeout = 93, // GatewayTimeout(504)
* Avoid mutating executable paths when copying files during full service ↵Liam Mitchell2025-09-041-5/+7
| | | | install (#486)
* Fix trailing whitespace in service_cmd.cppLiam Mitchell2025-08-201-1/+0
|
* Fix permissions and ownership issues with service binary copy and remove ↵Liam Mitchell2025-07-251-1/+10
| | | | unnecessary alias from unit file
* Increase service stop timeout to 30 seconds during full installLiam Mitchell2025-07-211-1/+1
|
* Add PDBs and crashpad_handler to installed files during full service installLiam Mitchell2025-07-211-11/+24
|
* Add --full option to service install, which will handle stop/uninstall if ↵Liam Mitchell2025-07-161-9/+119
| | | | necessary, and copy binaries to install location
* Merge pull request #321 from ue-foundation/lm/zen-service-elevated-command-lineLiam Mitchell2025-03-261-2/+2
|\ | | | | Fix command line parsing when running service commands elevated
| * Fix command line parsing when running service commands elevatedLiam Mitchell2025-03-251-2/+2
| |
* | Update return codes for service commands to provide more information to the ↵Liam Mitchell2025-03-251-2/+16
|/ | | | caller
* Merge remote-tracking branch 'origin/main' into de/zen-service-commandDan Engelbrecht2025-03-141-6/+1
|
* Implementation of service commands for Linux.Liam Mitchell2025-02-271-1/+8
|
* fix positional arguments for zen service install on non-windows platformsDan Engelbrecht2025-01-171-1/+3
|
* systemd unit file, incompleteDan Engelbrecht2025-01-151-1/+1
|
* typo fixDan Engelbrecht2025-01-101-1/+1
|
* clang formatDan Engelbrecht2025-01-101-26/+28
|
* displayname and description are windows-only propertiesDan Engelbrecht2025-01-101-28/+34
|
* partially working service commands for macosDan Engelbrecht2025-01-101-1/+2
|
* make windows elevation optionalDan Engelbrecht2025-01-101-70/+130
|
* remove ServiceLevelDan Engelbrecht2025-01-101-29/+8
|
* use attachconsole to send ctrl+c to running processDan Engelbrecht2025-01-081-2/+7
|
* add ServiceLevel for service processes: User, AllUsers and ServiceDan Engelbrecht2025-01-081-26/+103
|
* check if service is already installed before attempting installDan Engelbrecht2025-01-081-7/+27
|
* Add ServiceSpec structDan Engelbrecht2025-01-081-12/+14
|
* zen `service` commandDan Engelbrecht2025-01-081-0/+308