dotfiles/systemd/system/log_battery.service

10 lines
211 B
Desktop File

[Unit]
Description=Log the current battery charge
Wants=log_battery.timer
[Service]
User=root
Group=root
Type=oneshot
ExecStart=/usr/local/bin/log_battery.sh BAT0 /home/emiliko/safe/loggers/battery/battery.csv