marcoraddatz / homebridge-docker

Dockerized Homebridge. No plugins pre-defined, hassle-free setup. Read instructions!
Apache License 2.0
127 stars 47 forks source link

Failed to restart homebridge using homebridge-config-ui-x #67

Closed Nappyy closed 4 years ago

Nappyy commented 5 years ago

Hi there,

I've installed the "homebridge-config-ui-x" plugin. If I try to restart homebridge service using plugin default setting "sudo -n systemctl restart homebridge" it fails. What's to correct command to restart homebridge in qnap docker container?

kind regards, Kai

deadbone commented 5 years ago

I don't know qnap, but I think you should restart the whole docker container which contains your homebrige's image. Hope it's help a bit.

Nappyy commented 5 years ago

well, I guess this is a bit overpowered if you just want to update your config.json in the webinterface.

deadbone commented 5 years ago

yep but on my Synology I always do like this :) But I think you could give it a try and after that I think config UI give you the hability to refresh your config

Nappyy commented 5 years ago

yes, config UI gives the ability to refresh your config. but to apply the new settings, homebridge need to restart. usually you would now just restart the homebridge service, but this is not possible in docker container (at least not using systemctl command).

So there are two viable options: a) find another (proper) terminal command to restart homebridge service in docker b) restart docker container using terminal command (don't know if this is possible)

the clean way would be to restart just the service...

deadbone commented 5 years ago

I just test on my Synology this command :

sudo /usr/local/bin/docker start homebridge

It's working (my container is obviously named "home bridge" :))

so I think you could adapt this command to your qnap

(there are stop and restart options too)

Nappyy commented 5 years ago

I guess this would restart the container from host machines terminal, isn't it? config UI is running inside the container, so this wouldn't work in my opinion :/

deadbone commented 5 years ago

It’s for your option b)

Le 24 mai 2019 à 17:51, Nappyy notifications@github.com a écrit :

I guess this would restart the container from host machines terminal, isn't it? config UI is running inside the container, so this wouldn't work in my optinion :/

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

Nappyy commented 5 years ago

oh i see. in option b) I still wanted to reboot the container from the container itself (the config UI), not the host machine