fix(init): guard against duplicate jibo-system-manager starts #1

Merged
ghchinoy merged 1 commits from fix/prevent-duplicate-system-manager-start into main 2026-08-02 18:51:56 +00:00
ghchinoy commented 2026-08-02 18:28:22 +00:00 (Migrated from github.com)

Summary

  • Duplicate Execution Guard: Checks if jibo-system-manager is already running in start() and exits early to avoid spawning duplicate processes, double service initialization, and ALSA audio lockouts.
  • Process Matching Fix: Updates check_running() to match $BIN_DIR/$PROCESS using pgrep -f rather than relying on 15-character truncated names (pgrep -x jibo-system-man).
  • POSIX Shell Fix: Replaces non-standard >& /dev/null redirection with POSIX-compliant > /dev/null 2>&1.
### Summary - **Duplicate Execution Guard**: Checks if `jibo-system-manager` is already running in `start()` and exits early to avoid spawning duplicate processes, double service initialization, and ALSA audio lockouts. - **Process Matching Fix**: Updates `check_running()` to match `$BIN_DIR/$PROCESS` using `pgrep -f` rather than relying on 15-character truncated names (`pgrep -x jibo-system-man`). - **POSIX Shell Fix**: Replaces non-standard `>& /dev/null` redirection with POSIX-compliant `> /dev/null 2>&1`.
Sign in to join this conversation.