node.js child_process.spawn ENOENT error - only under supervisord
I'm running a command with Node.js using child_process.spawn: #!/usr/bin/js var spawn = require("child_process").spawn; var stockfish = spawn("stockfish"); This works fine using $js spawntest.js from the command line; it just hangs like you would expect because the subcommand is waiting for input. When I set this script up as a supervisord program, however, it fails: $ sudo supervisorctl start spawntest spawntest: ERROR (abnormal termination) Here is the contents of the stderror output log that supervisor keeps in /var/log/supervisor/spawntest-stderr---supervisor-RyULL0.log: events.js:72 throw