# Yakut file-server Updating & Node Restart

**URL:** <https://forum.opencyphal.org/t/yakut-file-server-updating-node-restart/1903>\
**Category:** CLI tools (Cynic/Yakut)\
**Created:** [June 5, 2023, 9:00pm UTC](https://forum.opencyphal.org/t/yakut-file-server-updating-node-restart/1903 "2023-06-05T21:00:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![m.moreland](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/m.moreland/32/1685_2.png) [@m.moreland](https://forum.opencyphal.org/u/m.moreland)\
**Post date:** [June 5, 2023, 9:00pm UTC](https://forum.opencyphal.org/t/yakut-file-server-updating-node-restart/1903/1 "2023-06-05T21:00:43Z")

</div>

Howdy all,

I have some questions I’m looking to answer, both around Yakut and the file-server command to update nodes.

- Does this file-server force a restart after serving the entire update file? i.e. sending a uavcan.node.ExecuteCommand to restart the node?

- If it does not, what is the intended pattern for communicating update is complete? Is there a method to communicate the firmware update is done using the Public message definitions?

- If the Node is expected to restart itself, is there a way for the file-server job to end? Either by limiting the number of times it serves and update or timeout?

Thank you in advanced for the help,  
Michael Moreland

---

<div class="post-metadata">

**Author:** ![pavel.kirienko](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/pavel.kirienko/32/9_2.png) [@pavel.kirienko](https://forum.opencyphal.org/u/pavel.kirienko)\
**Post date:** [June 6, 2023, 9:17am UTC](https://forum.opencyphal.org/t/yakut-file-server-updating-node-restart/1903/2 "2023-06-06T09:17:21Z")

</div>

> [@m.moreland](#):
>
> Does this file-server force a restart after serving the entire update file? i.e. sending a uavcan.node.ExecuteCommand to restart the node?

No. The file server does not drive the process; it merely responds to file read requests and as such it can’t know with certainty when the file transfer is completed. The node is responsible for doing the right thing after the file transfer is done (which does not necessarily require a restart, depending on the implementation).

> [@m.moreland](#):
>
> If it does not, what is the intended pattern for communicating update is complete? Is there a method to communicate the firmware update is done using the Public message definitions?

There is none. Some bootloaders emit diagnostic log messages during the process but this is intended for human consumption.

> [@m.moreland](#):
>
> If the Node is expected to restart itself, is there a way for the file-server job to end? Either by limiting the number of times it serves and update or timeout?

Currently, there is no built-in way of doing so in Yakut, but the standard GNU utils can do the job just fine; e.g., using [timeout(1) - Linux manual page](https://man7.org/linux/man-pages/man1/timeout.1.html)

---

<div class="post-metadata">

**Author:** ![m.moreland](https://forum.opencyphal.org/user_avatar/forum.opencyphal.org/m.moreland/32/1685_2.png) [@m.moreland](https://forum.opencyphal.org/u/m.moreland)\
**Post date:** [June 6, 2023, 3:01pm UTC](https://forum.opencyphal.org/t/yakut-file-server-updating-node-restart/1903/3 "2023-06-06T15:01:28Z")

</div>

Wonderful thank you!
