reslogd is a lightweight Linux daemon that logs system resource usage (CPU, RAM, and process count) to a log file every minute.
- Runs as a daemon in the background
- Logs:
- CPU usage (%)
- RAM used (MiB)
- Number of active processes
- Logs saved to
/var/log/reslogd.log - PID saved to a file (default:
/run/reslogd.pid) - Supports log rotation and init script
sudo makeThis will:
- Build the binary (
/usr/bin/reslogd) - Copy the logrotate config to
/etc/logrotate.d/reslogd - Copy the init script to
/etc/init.d/reslogd
sudo /usr/bin/reslogdOr use the init system:
sudo service reslogd start[Tue Jun 17 15:34:14 2025] CPU: 17.5% RAM: 7450.7MiB Processes: 305
A sample config is installed to /etc/logrotate.d/reslogd. You can rotate logs manually:
sudo logrotate -f /etc/logrotate.d/reslogdsudo rm /usr/bin/reslogd
sudo rm /etc/init.d/reslogd
sudo rm /etc/logrotate.d/reslogd
sudo rm /var/log/reslogd.log
sudo rm /run/reslogd.pidThis project is licensed under the MIT License - see the LICENSE file for details.