JustArion / systemd-PowerLogs

A service that monitors the duration the system was unpowered.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Logs:
$ > systemctl status powerlogs.service
or
$ > cat /var/log/powerlogs.log

Install

Requirements

  • sudo
  • git
git clone https://github.com/JustArion/systemd-PowerLogs/ && cd systemd-PowerLogs
chmod +x Install.sh
sudo ./Install.sh

You can now safely remove the systemd-PowerLogs directory that you cloned.

Note

Tested and confirmed working on Arch & Ubuntu

Notable commands used in scripts
sudo
chmod
umask
flock
systemctl (& systemd by proxy)
date

Removal

chmod +x Remove.sh
sudo ./Remove.sh

About

A service that monitors the duration the system was unpowered.


Languages

Language:Shell 100.0%