test fork
Find a file
2024-01-25 20:18:16 +01:00
.github/workflows Introduce timetracker application 2024-01-25 20:14:22 +01:00
DEBIAN Introduce timetracker application 2024-01-25 20:14:22 +01:00
systemd Introduce timetracker application 2024-01-25 20:14:22 +01:00
.gitignore Introduce timetracker application 2024-01-25 20:14:22 +01:00
go.mod Introduce timetracker application 2024-01-25 20:14:22 +01:00
LICENSE Introduce timetracker application 2024-01-25 20:14:22 +01:00
main.go Introduce timetracker application 2024-01-25 20:14:22 +01:00
Readme.md Update readme 2024-01-25 20:18:16 +01:00

Timetracker

Tracks every 5 minutes if system is running to store the beginning and end of using the system.

Parameters

The timetracker application provides the following arguments which can be passed:

Property Description
configpath Defines the location of the necessary files, default: /var/lib/timetracker

Execution

The application is triggered by a systemd timer which triggers the application via systemd unit.

To enable the timer you have to (requires root privileges):

enable the timer

systemctl enable timetracker.timer

start the timer

systemctl start timetracker.timer

To verify if the timer is running you can check it using:

systemctl list-timers

License

This application is published under the MIT license.