With Node you can write very fast JavaScript programs serverside. It's pretty easy to install Node, code your program, and run it. But > how do you make it run nicely in the background like a true server?
- Go to
/etc/init/
$ sudo vim yourapp.conf
- Paste script.conf
$ sudo start yourapp
- And when you wanna kill the process
$ sudo stop yourapp
Thanks to [kvz.io] (http://kvz.io/blog/2009/12/15/run-nodejs-as-a-service-on-ubuntu-karmic/) for this!
Had the same error.-
I ran below instructions on Ubuntu 16.04.1 LTS and works for me.
sudo apt-get install upstart-sysv
sudo update-initramfs -u
sudo reboot
here's the link
https://askubuntu.com/questions/614970/vivid-failed-to-connect-to-upstart-connection-refused
:)