Skip to content

feat(installer): add system-wide systemd service for production enviroment#1

Open
0xtbug wants to merge 1 commit intobrokechubb:masterfrom
0xtbug:master
Open

feat(installer): add system-wide systemd service for production enviroment#1
0xtbug wants to merge 1 commit intobrokechubb:masterfrom
0xtbug:master

Conversation

@0xtbug
Copy link
Copy Markdown

@0xtbug 0xtbug commented Jan 17, 2026

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.

…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant