(conn *systemdDbus.Conn, group string)
| 1126 | } |
| 1127 | |
| 1128 | func attemptFailedUnitReset(conn *systemdDbus.Conn, group string) { |
| 1129 | ctx := context.TODO() |
| 1130 | err := conn.ResetFailedUnitContext(ctx, group) |
| 1131 | |
| 1132 | if err != nil { |
| 1133 | log.G(ctx).Warnf("Unable to reset failed unit: %v", err) |
| 1134 | } |
| 1135 | } |
| 1136 | |
| 1137 | func LoadSystemd(slice, group string) (*Manager, error) { |
| 1138 | if slice == "" { |
no outgoing calls
no test coverage detected
searching dependent graphs…