Open nkbaba opened 7 years ago
I can confirm this. Seeing the same issue.
+1 havint the same issue
`root@SumoLogicCollector:/usr/local/lib/node_modules/airsonos# sudo forever-service install airsonos2 --script bin/index.js forever-service version 0.5.9
Platform - Ubuntu 16.04.1 LTS initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused Could not provision service Could not add service airsonos2 initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
`
Same issue here. No updates for this to work in 16.04? :)
Same error on Ubuntu 17.04
Version 16.04 of ubuntu uses systemd and no longer upstart (used by forever-service). In order for the service to be installed correctly, you must install upstart-sysv:
# apt install upstart-sysv
# update-initframfs -u
# reboot
After reboot, run the service install command:
# forever-service install myservice --script service.js --start
The service is installed, but it will not start with the system. To make this happen you should edit the /etc/init.d/rc.local file:
# vi /etc/init.d/rc.local
Before the rows of functions add the line:
start myservice
Hope this helps ^^!
@flaugusto you meant
sudo update-initramfs -u
Platform - Ubuntu 16.04.1 LTS initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused Could not provision service Could not add service nodeServer initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused