mirror of
https://github.com/henrygd/beszel.git
synced 2026-03-22 21:46:18 +01:00
* basic systemd service monitoring * update to work after /internal rename * monitor systemd service cpu and memory usage --------- Co-authored-by: henrygd <hank@henrygd.me>
19 lines
468 B
Go
19 lines
468 B
Go
//go:build !linux
|
|
|
|
package agent
|
|
|
|
import "github.com/henrygd/beszel/internal/entities/systemd"
|
|
|
|
// systemdManager manages the collection of systemd service statistics.
|
|
type systemdManager struct{}
|
|
|
|
// newSystemdManager creates a new systemdManager.
|
|
func newSystemdManager() (*systemdManager, error) {
|
|
return &systemdManager{}, nil
|
|
}
|
|
|
|
// getServiceStats returns nil for non-linux systems.
|
|
func (sm *systemdManager) getServiceStats() []*systemd.Service {
|
|
return nil
|
|
}
|