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
ruflo daemon start
ruflo daemon status
- 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
Bug Description
ruflo daemon statusshows Status: STOPPED immediately afterstarting, even though the daemon process is running. The
ps -o pidcommand used for process health checking fails on Windows.Steps to Reproduce
ruflo daemon startruflo daemon statusError 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
pscommandfrom Git Bash/msys2 does not support the
-o pidsyntax the sameway as Unix.
Environment
Expected Fix
Replace
ps -o pidwith cross-platform process checking using:tasklist /FI "PID eq <pid>" /FO CSVps -o pid(keep existing)process.kill(pid, 0)which workscross-platform
Related
compatibility)