Skip to content

[Bug]: ocx service install on Linux always suggests loginctl enable-linger, even when linger is already on #6946

Closed

Description

@lidge-jun

Client or integration

Other

Area

Service lifecycle

Summary

After a successful ocx service install on Linux, the CLI always prints For auto-start on boot: loginctl enable-linger $USER, including when loginctl show-user $USER -p Linger already reports Linger=yes. The line comes from src/service/cli.ts (around L339), which checks only process.platform === "linux". It reads as if the service will not start at boot.

Reproduction

  1. On Ubuntu 24.04 with loginctl show-user $USER -p Linger → Linger=yes.
  2. ocx service install.
  3. The output ends with the enable-linger hint.

Expected: print the hint only when linger is off, or say that linger is already enabled.

Version

2.83.0 (Linux deb)

Operating system

Ubuntu 24.04 x86_64

Provider and model

No response

Logs or error output

✅ opencodex service installed and serving on port 10100.
   For auto-start on boot: loginctl enable-linger $USER

Screenshots and supporting files

No response

Redacted configuration

No response

Checks

  • I searched existing issues and documentation.
  • I removed secrets, tokens, account details, request credentials, and personal data.

Activity

  1. added
    bug
    on Oct 11, 2026
  2. added
    cli
    service
    on Oct 11, 2026
  3. lidge-jun commented on Oct 11, 2026

    @lidge-jun
    OwnerAuthor

    Fixed on dev by #6954 (squash 862b8f1). Exact-head CI on 55f665e was green (PR CI and Cross-platform CI lane=all 38147206772); an independent review passed on that head.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugcliservice

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions