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

Restart child bridge from cmd #2852

Closed
WojtekWro opened this issue Feb 28, 2021 · 11 comments
Closed

Restart child bridge from cmd #2852

WojtekWro opened this issue Feb 28, 2021 · 11 comments

Comments

@WojtekWro
Copy link

Hi,
Is there a chance to restart child bridge using cmd?
One of my accessories on child bridge tends to freeze. Restart of child bridge solves the problem. I would like to automatise this procedure.

@NorthernMan54
Copy link
Contributor

If you use

ps -ef | grep homebridge

it will show each child and the plugin name so you can kill it

@WojtekWro
Copy link
Author

WojtekWro commented Feb 28, 2021

This is not I have expected.
Each time process id is different so it's not possible to us this automatically.
However thank you for your answer :-)

@oznu
Copy link
Member

oznu commented Mar 1, 2021

On Linux systems systems, you can run:

kill -15 $(pidof 'homebridge: homebridge-dummy')

Replace homebridge-dummy with the name of the plugin.

@IMNotMax
Copy link

IMNotMax commented Mar 4, 2021

Hi, as usual, amazing work ! Thanx !
Works great, but a more user friendly solution should be great too for all users testing configs (as I am with my tizen TV... lot of restarts :) )
May be a feature request ???

@donavanbecker
Copy link
Contributor

@IMNotMax why not just use Homebridge UI to make the easy restart?

@IMNotMax
Copy link

IMNotMax commented Mar 4, 2021

Because I don't want to restart all the plugins everytime. Child bridges are an excellent (amazing !) solution for testing config and isolating "unstable" plugings.
That's why "isolating" the restart could be a great function... i think ;)

@donavanbecker
Copy link
Contributor

@IMNotMax on the Homebridge UI, this is an option to restart only the child bridges.
Screen Shot 2021-03-04 at 4 18 54 PM

@IMNotMax
Copy link

IMNotMax commented Mar 4, 2021

Can you give me a clue where to find this interface ? (everything is up to date on my container and I still can't find this !)

UPDATE : Ok, my bad, there is a widget I have to add to show child bridges status...

@donavanbecker
Copy link
Contributor

Screen Shot 2021-03-04 at 4 43 29 PM

Screen Shot 2021-03-04 at 4 43 41 PM

@IMNotMax
Copy link

IMNotMax commented Mar 4, 2021

Thanx for your patience :)

@github-actions
Copy link

github-actions bot commented Apr 4, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

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

No branches or pull requests

5 participants