Rewrite the logger in Rust; add install targets
vitals-log replaces the bash sampler and writes the same CSV layout. The crate is now a library plus two binaries. dist/ holds the systemd unit and desktop entry templates, installed by make install. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
[Unit]
|
||||
Description=Log system temperatures, power status and memory load
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=@BINDIR@/vitals-log
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Log system vitals every minute
|
||||
|
||||
[Timer]
|
||||
OnCalendar=minutely
|
||||
AccuracySec=1s
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Vitals
|
||||
GenericName=System Vitals History
|
||||
Comment=Temperature, power and memory history
|
||||
Exec=@BINDIR@/vitals
|
||||
Icon=utilities-system-monitor
|
||||
Terminal=false
|
||||
Categories=System;Monitor;
|
||||
StartupWMClass=vitals
|
||||
Reference in New Issue
Block a user