TP1 - Software Libre - 2021 - FI-UNMdP
Daemon for Linux that detects if the battery is completely charged and the computer is plugged-in, and then registers it in a file in /var/log
. Made with Python 3
.
- Mariquena Gros
- Pablo Porzio
1 - Clone repo:
git clone https://github.com/porziopablo/battery-daemon.git
2 - Create logs directory:
sudo mkdir /var/log/battery-daemon
3 - Transfer ownership to the user
that will run the daemon:
sudo chown usuario /var/log/battery-daemon
1 - Start:
python3 battery-daemon.py start
2 - Stop:
python3 battery-daemon.py stop
3 - Restart:
python3 battery-daemon.py restart