diff --git a/lib/yunohost/tools.py b/lib/yunohost/tools.py index 67e74a1e4..f27ad7c0e 100644 --- a/lib/yunohost/tools.py +++ b/lib/yunohost/tools.py @@ -469,3 +469,11 @@ def tools_upgrade(auth, ignore_apps=False, ignore_packages=False): if is_api: from yunohost.service import service_log return { "log": service_log('yunohost-api', number="100").values()[0] } + + +def tools_reboot_server(): + """ + Simple function to reboot the server. + Interesting to use via the web interface. + """ + os.system('reboot')