Comments (6)
Sorry, I'm not sure I understand the problem. What command is your script trying to run? Was your script working previously until you upgraded supervisor or changed something else?
from node-supervisor.
I was running supervisor from a startup script in /etc/init.d and it complained that supervisor not find node
This is the startup script I was using at default runlevel (for starting node when debian system reboots):
https://github.com/chovy/node-startup/blob/master/init.d/node-app
Just replace node with supervisor
EXEC=/usr/local/bin/supervisor
It did not have a problem when I run it manually, only when the system rebooted did I get the error in my log.
My guess is it tried to run before a shell was available, but I'm not sure.
edit: actually, I think it had a shell, the startup script is a bash script, but node probably isn't in the path. The way you're getting node:
/usr/sbin/env | node
This was the problem.
from node-supervisor.
Ok, I see. Is there any other way that would work better? We can't just hardcode the path to node in there.
from node-supervisor.
hardcoding it would probably fix the issue. But then anyone who is not using standard /usr/local/bin/node path it will break for. Maybe there's a way to to both. /usr/local/bin/node || /usr/sbin/env | node
from node-supervisor.
Right, just like with other languages, it's not safe to assume that the node binary is in any one place.
Your best bet is probably arranging to have node in your path by the time your script runs. If that's not an option, I'd recommend forking this repository and maintaining a modified version that works for you. npm
plays nice with GitHub - you can install directly from a repository like this: npm install -g https://github.com/isaacs/node-supervisor/tarball/master
.
from node-supervisor.
I think this will fix it adding this to the system boot script:
PATH=/usr/local/bin:$PATH
from node-supervisor.
Related Issues (20)
- node native Inspector not work with custom port using supervisor HOT 5
- not possible to have colored output (using the unbuffer trick, doesnt work)
- Does not work with node 7 HOT 3
- package.json license is "MIT", but the actual LICENSE file is BSD-2.
- How to add node --max-old-space-size flag? HOT 3
- Conflict with phantomjs while converting to pdf HOT 1
- Prevent developers from unintentionally killing daemon / worker processes on local machine
- why my node-supervisor doesn't work
- 100% CPU load when I use 'supervisor app.js' but when I use' node app.js ' just only 5% CPU load HOT 4
- Supervisor stop accepting "rs" to restart
- bash: supervisor: command not found HOT 2
- problem with --experimental-modules HOT 1
- How do I listen for all types of files?
- Recurse over directories
- Is there a way to use the preload args of node? HOT 3
- is there a way to exit on error instead of hanging?
- can this run Python as well?
- Infinite restarts of "Starting child process" HOT 2
- Arguments Incorrectly Parsed HOT 3
- Can this be run in background?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-supervisor.