Skip to content

[BUG] Daemon status shows STOPPED on Windows — ps -o pid command not supported #1633

@Kusts

Description

@Kusts

Bug Description

ruflo daemon status shows Status: STOPPED immediately after
starting, even though the daemon process is running. The ps -o pid command used for process health checking fails on Windows.

Steps to Reproduce

  1. ruflo daemon start
  2. ruflo daemon status
  3. Result: Status shows ○ STOPPED despite process running

Error Observed

ps: unknown option -- o
Try ps --help for more information.

Root Cause

The daemon uses ps -o pid (Unix-style process status command)
to verify if a process is running. On Windows, the ps command
from Git Bash/msys2 does not support the -o pid syntax the same
way as Unix.

Environment

  • Windows 11 Pro 10.0.26200
  • Node.js v24.15.0 / npm 11.12.1
  • ruflo v3.5.80
  • Shell: Git Bash / msys2

Expected Fix

Replace ps -o pid with cross-platform process checking using:

  • Windows: tasklist /FI "PID eq <pid>" /FO CSV
  • macOS/Linux: ps -o pid (keep existing)
  • Or use Node.js native process.kill(pid, 0) which works
    cross-platform

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions