Skip to content

Commit e127ebf

Browse files
authored
Reduce systemd polling interval (#1043)
Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com> Signed-off-by: Kemal Akkoyun <kakkoyun@gmail.com>
1 parent 56bd748 commit e127ebf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/discovery/systemd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func (c *SystemdDiscoverer) Run(ctx context.Context, up chan<- []*Group) error {
6060
return !strings.HasSuffix(name, ".service")
6161
}
6262

63-
updateCh, errCh := conn.SubscribeUnitsCustom(time.Second, 0, isSubStateChanged, isNotService)
63+
updateCh, errCh := conn.SubscribeUnitsCustom(5*time.Second, 0, isSubStateChanged, isNotService)
6464

6565
for {
6666
select {

0 commit comments

Comments
 (0)