mirror of
https://github.com/henrygd/beszel.git
synced 2026-03-23 22:16:18 +01:00
systemd: allow timer monitoring with SERVICE_PATTERNS (#1820)
This commit is contained in:
@@ -301,7 +301,7 @@ func getServicePatterns() []string {
|
||||
if pattern == "" {
|
||||
continue
|
||||
}
|
||||
if !strings.HasSuffix(pattern, ".service") {
|
||||
if !strings.HasSuffix(pattern, "timer") && !strings.HasSuffix(pattern, ".service") {
|
||||
pattern += ".service"
|
||||
}
|
||||
patterns = append(patterns, pattern)
|
||||
|
||||
Reference in New Issue
Block a user