: If I visit the log it doesn't tell to much (exited normally). : I haven't even tested on real boot as it doesn't even work with sudo start prv Sudo su -p (altough I am not using any specific env variable)įorever start -l f.log -o out.log -e err.log -append app.js IN FACT, from command line I can start the app by typing the following (and this works as expected): cd /home/ec2-user/prv Here is the script I have so far (prv.conf, at /etc/init/prv.conf): author "Renato Gama"Įxec su -c "/usr/bin/forever start -l forever.log -o /home/ec2-user/prv/logs/out.log -e /home/ec2-user/prv/logs/err.log -append /home/ec2-user/prv/app.js" root | logger -t PRV The app works great if running from command line (forever is working and upstart also). I have tried hundreds of ways to achieve this (many trial and error attempts), but nothing really seems to work for me. So I am using upstart to initialize forever. I am trying to start a nodejs application with forever ( forever simply restarts the program if it crashes), but forever itself is not auto started on boot.
0 Comments
Leave a Reply. |