Closed alexbbb closed 9 years ago
Also tried setting the command line parameter
-c /usr/local/bin/node
on each forever call, without exporting PATH, but it doesn't work
I have done some changes in 0.4.5 to allow -e env variables to be setup as global variables rather than specific to forever command line.
So now you can use -e "PATH=/usr/local/bin:\$PATH" as the parameter in forever-service cli to add the PATH variable to your startup script
@arvind-agarwal it works like a charm! Just updated forever-service and tried it! Awesome job, thank you!
How to reproduce the error: Raspbian wheezy on RaspberryPi Model B, with node.js 0.10.36 for ARM got from here: http://node-arm.herokuapp.com/node_0.10.36_armhf.deb, forever 0.14.1 and forever-service 0.4.4. Run this as root:
Then create this little app:
and install it as a service:
Reboot the raspberry and at boot the service will not get started.
To make it work, the only way I've found so far is to manually edit /etc/init.d/myservice script and add:
before: