# Reboot Host and/or Supervisor if it loses connection with dashboard

**URL:** <https://forums.balena.io/t/reboot-host-and-or-supervisor-if-it-loses-connection-with-dashboard/3123>\
**Category:** Product support\
**Created:** [May 10, 2018, 11:23am UTC](https://forums.balena.io/t/reboot-host-and-or-supervisor-if-it-loses-connection-with-dashboard/3123 "2018-05-10T11:23:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rpelletier](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@rpelletier](https://forums.balena.io/u/rpelletier)\
**Post date:** [May 10, 2018, 11:23am UTC](https://forums.balena.io/t/reboot-host-and-or-supervisor-if-it-loses-connection-with-dashboard/3123/1 "2018-05-10T11:23:31Z")

</div>

I have some unsupported PC sticks that work quite well with the intel-nuc code. However, after about 2-3 days they consistently lose the connection. I would like to either be able to reboot the Host daily or even better have the host reboot or refresh the network connection when the connection is lost. I am still learning this system so please bear with me. Normally I would just write a bash script and make a cronjob, but resinos does not have cron installed. I can of course install cron into the container, but a reboot of that just reboots the container not the host or the supervisor. I have been looking through the documentation and the forum, but haven’t found anything to point me in the right direction. Any assistance is always appreciated?

---

<div class="post-metadata">

**Author:** ![afitzek](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/afitzek/32/359_2.png) [@afitzek](https://forums.balena.io/u/afitzek)\
**Post date:** [May 10, 2018, 11:49am UTC](https://forums.balena.io/t/reboot-host-and-or-supervisor-if-it-loses-connection-with-dashboard/3123/4 "2018-05-10T11:49:11Z")

</div>

Hi,  
You can use the supervisor API to reboot the device: [https://docs.resin.io/reference/supervisor/supervisor-api/#post-v1-reboot](https://docs.resin.io/reference/supervisor/supervisor-api/#post-v1-reboot)

Or if you want to play around with the network connection you can do that via the NetworkManager dbus interface:

- [https://docs.resin.io/reference/resinOS/network/2.x/#changing-the-network-at-runtime](https://docs.resin.io/reference/resinOS/network/2.x/#changing-the-network-at-runtime)
- [https://developer.gnome.org/NetworkManager/stable/spec.html](https://developer.gnome.org/NetworkManager/stable/spec.html)

Hope this is what you are looking for.

---

<div class="post-metadata">

**Author:** ![rpelletier](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@rpelletier](https://forums.balena.io/u/rpelletier)\
**Post date:** [May 10, 2018, 12:05pm UTC](https://forums.balena.io/t/reboot-host-and-or-supervisor-if-it-loses-connection-with-dashboard/3123/6 "2018-05-10T12:05:23Z")

</div>

I had searched for APIs to do this but clearly not hard enough. This is absolutely perfect. Thanks for pointing me in the right direction.
