# Restart device and update existing python file in RPi

**URL:** <https://hub.mender.io/t/restart-device-and-update-existing-python-file-in-rpi/1998>\
**Category:** General Discussions\
**Created:** [June 3, 2020, 7:31am UTC](https://hub.mender.io/t/restart-device-and-update-existing-python-file-in-rpi/1998 "2020-06-03T07:31:25Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![oleorhagen](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/oleorhagen/32/297_2.png) [@oleorhagen](https://hub.mender.io/u/oleorhagen)\
**Post date:** [June 3, 2020, 8:27am UTC](https://hub.mender.io/t/restart-device-and-update-existing-python-file-in-rpi/1998/2 "2020-06-03T08:27:47Z")

</div>

Hi 🙂

Mender supports updating single files through:

> [@Single File](https://hub.mender.io/t/single-file/486):
>
> Description The Single File Update Module installs a user defined file into a given destination directory on the device. If the file already exists in the destination folder on the device, the Update Module will take a backup copy of it. This allows the Mender client to rollback if something goes wrong. Example use-cases: Updating a single-binary application Updating a operating system-wide configuration file Specification Module name single-file Supports rollback yes Requir…

Also, if you are running an A/B partition scheme with Mender a rootfs update will reboot the device.

I guess I’m gonna need a little more on the use-case if you this is not what you need though.

---

_[View the full topic](https://hub.mender.io/t/restart-device-and-update-existing-python-file-in-rpi/1998)._
