emonhub not starting automatically on boot (Ubuntu 15.04)

Hi,

I have a new system I am setting up, running Ubuntu 15.04. I have run all the install scripts and emonhub works, but only if i start it manually after a boot by running

/etc/init.d/emonhub start

I assume the reason that it doesn't start automatically is because of the shift from Upstart in previous versions to systemd in the latest version.

Can anyone point me in the right direction as to what I need to run to get it to start up automatically on boot?

 

Thanks

 

edit: i think the following might work. I'll give it a test and report back in the morning.

 

systemctl enable emonhub.service

pb66's picture

Re: emonhub not starting automatically on boot (Ubuntu 15.04)

Do you get a response to systemctl status emonhub.service ? I found conflicting infos some didn't have the ".service" so you could try systemctl status emonhub too, Depending on whether start, stop, restart or status work with or without the ".service" may be a good indication of whether the "enable" is likely to work in the same format and save on the rebooting.

Interested to hear how it pans out.

Paul

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.