mirror of
https://github.com/henrygd/beszel.git
synced 2026-09-30 13:27:46 +02:00
feat: show systemd service logs in service details (#2440)
Co-authored-by: hank <hank@henrygd.me>
This commit is contained in:
@@ -11,6 +11,7 @@ import (
|
||||
// systemdManager manages the collection of systemd service statistics.
|
||||
type systemdManager struct {
|
||||
hasFreshStats bool
|
||||
logsEnabled bool
|
||||
}
|
||||
|
||||
// newSystemdManager creates a new systemdManager.
|
||||
@@ -36,3 +37,7 @@ func (sm *systemdManager) getFailedServiceCount() uint16 {
|
||||
func (sm *systemdManager) getServiceDetails(string) (systemd.ServiceDetails, error) {
|
||||
return nil, errors.New("systemd manager unavailable")
|
||||
}
|
||||
|
||||
func (sm *systemdManager) getServiceLogs(string) (string, error) {
|
||||
return "", errors.New("systemd manager unavailable")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user