Summary
After a fresh brew install openshell (v0.1.2), brew services restart openshell silently fails to start the gateway. openshell gateway info returns "Connection refused."
Root cause
The launchd plist (homebrew.mxcl.openshell.plist) sets StandardErrorPath and StandardOutPath to /opt/homebrew/var/log/openshell/openshell-gateway.{err,out}.log, but the formula does not create the /opt/homebrew/var/log/openshell/ directory during installation. launchd silently refuses to start the service when it cannot open the log files.
Reproduction
brew install nvidia/openshell/openshell (fresh install, no prior version)
brew services restart openshell
openshell gateway info → "Connection refused"
brew services info openshell → Running: false, Loaded: true, Schedulable: false
- No log files exist in
/opt/homebrew/var/log/openshell/
Workaround
mkdir -p /opt/homebrew/var/log/openshell
brew services restart openshell
Suggested fix
Add mkdir -p /opt/homebrew/var/log/openshell to the formula's post_install block (or the service wrapper script), so the log directory is guaranteed to exist before launchd attempts to start the service.
Environment
- macOS (Darwin 27.0.0, arm64)
- openshell 0.1.2
- Homebrew tap: nvidia/homebrew-openshell
Summary
After a fresh
brew install openshell(v0.1.2),brew services restart openshellsilently fails to start the gateway.openshell gateway inforeturns "Connection refused."Root cause
The launchd plist (
homebrew.mxcl.openshell.plist) setsStandardErrorPathandStandardOutPathto/opt/homebrew/var/log/openshell/openshell-gateway.{err,out}.log, but the formula does not create the/opt/homebrew/var/log/openshell/directory during installation. launchd silently refuses to start the service when it cannot open the log files.Reproduction
brew install nvidia/openshell/openshell(fresh install, no prior version)brew services restart openshellopenshell gateway info→ "Connection refused"brew services info openshell→Running: false,Loaded: true,Schedulable: false/opt/homebrew/var/log/openshell/Workaround
Suggested fix
Add
mkdir -p /opt/homebrew/var/log/openshellto the formula'spost_installblock (or the service wrapper script), so the log directory is guaranteed to exist before launchd attempts to start the service.Environment