Skip to content

Run the translator as a systemd system service - #85

Merged
Karolk99 merged 1 commit into
mainfrom
fix/translator-system-service
Sep 9, 2026
Merged

Run the translator as a systemd system service#85
Karolk99 merged 1 commit into
mainfrom
fix/translator-system-service

Conversation

@Karolk99

@Karolk99 Karolk99 commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@Karolk99
Karolk99 requested review from Qizot and a lite review from Copilot September 9, 2026 11:48
@vercel

vercel Bot commented Sep 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
moq-demo Ready Ready Preview Sep 9, 2026 11:48am UTC

Request Review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The workflow now performs system-level systemctl and /etc/systemd/system writes without ensuring root/sudo privileges, which is likely to break deployments.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This PR migrates the translation demo’s “translator” process from a user-level systemd unit (systemctl --user) to a system-wide systemd service so it can survive SSH logouts and reboot cycles in the deployment environment.

Changes:

  • Added a systemd system unit definition for the translator service.
  • Updated the deployment workflow to install the unit into /etc/systemd/system, reload systemd, enable, and restart the service.
File summaries
File Description
translation-demo/service/deploy/translator.service Introduces a system-level systemd service definition for running the translator via uv.
.github/workflows/translation-demo-deploy.yml Updates remote deploy steps to install and manage the system service instead of a user service.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread .github/workflows/translation-demo-deploy.yml
Comment thread translation-demo/service/deploy/translator.service
@Karolk99
Karolk99 merged commit e883565 into main Sep 9, 2026
4 checks passed
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.

3 participants