feat(installer): add system-wide systemd service for production enviroment#1
Open
0xtbug wants to merge 1 commit intobrokechubb:masterfrom
Open
feat(installer): add system-wide systemd service for production enviroment#10xtbug wants to merge 1 commit intobrokechubb:masterfrom
0xtbug wants to merge 1 commit intobrokechubb:masterfrom
Conversation
…onments This commit introduces a new `system-service` command to the installer script. This command creates a system-wide systemd service that: - Runs 24/7 in the background. - Survives SSH logout and system reboots. - Automatically restarts on failure. - Runs as the root user for production safety. A new `system-status` command is also added to check the status of this system-wide service. The README.md is updated to include documentation for these new commands, explaining their benefits, usage, and management. This feature allows users to easily set up a robust and persistent CLIProxyAPI service for production deployments, addressing the need for a more resilient and always-on solution compared to the user-level systemd service. refactor(installer): improve code readability and consistency This commit refactors various parts of the `cliproxyapi-installer` script to improve readability and consistency. - Adds a newline at the end of the file. - Ensures consistent use of newlines and indentation. - Standardizes variable declarations and function calls. These changes do not alter the functionality of the script but make it easier to read and maintain.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit introduces a new
system-servicecommand to the installer script. This command creates a system-wide systemd service that:A new
system-statuscommand is also added to check the status of this system-wide service.The README.md is updated to include documentation for these new commands, explaining their benefits, usage, and management.
This feature allows users to easily set up a robust and persistent CLIProxyAPI service for production deployments, addressing the need for a more resilient and always-on solution compared to the user-level systemd service.
refactor(installer): improve code readability and consistency
This commit refactors various parts of the
cliproxyapi-installerscript to improve readability and consistency.These changes do not alter the functionality of the script but make it easier to read and maintain.