Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work for Ubuntu 16.04.1 LTS #84

Open
nkbaba opened this issue Nov 8, 2016 · 6 comments
Open

Doesn't work for Ubuntu 16.04.1 LTS #84

nkbaba opened this issue Nov 8, 2016 · 6 comments

Comments

@nkbaba
Copy link

nkbaba commented Nov 8, 2016

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

@segfaultex
Copy link

I can confirm this. Seeing the same issue.

@ITJamie
Copy link

ITJamie commented Jan 2, 2017

+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

`

@cikez
Copy link

cikez commented Mar 27, 2017

Same issue here. No updates for this to work in 16.04? :)

@gubi
Copy link

gubi commented Dec 13, 2017

Same error on Ubuntu 17.04

@flaugusto
Copy link

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 ^^!

@Ethereumx
Copy link

@flaugusto you meant

sudo update-initramfs -u

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants