diff --git a/CHANGELOG.md b/CHANGELOG.md index 75468e5..c45ab03 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.8.0] - 2025-04-23 + +### Added + +- Have the oglive agent send /stopped on poweroff or restart + ## [0.7.2] - 2025-04-21 ### Fixed diff --git a/ogclient/interfaceAdm/Apagar.py b/ogclient/interfaceAdm/Apagar.py index 25545f3..b89c3cc 100755 --- a/ogclient/interfaceAdm/Apagar.py +++ b/ogclient/interfaceAdm/Apagar.py @@ -2,6 +2,9 @@ import os import sys +import time +os.system ('pkill -f OGAgent') +time.sleep (3) os.system ('poweroff') sys.exit (0) diff --git a/ogclient/interfaceAdm/Reiniciar.py b/ogclient/interfaceAdm/Reiniciar.py index 0cbeedc..ceaa589 100755 --- a/ogclient/interfaceAdm/Reiniciar.py +++ b/ogclient/interfaceAdm/Reiniciar.py @@ -2,6 +2,9 @@ import os import sys +import time +os.system ('pkill -f OGAgent') +time.sleep (3) os.system ('reboot') sys.exit (0)