Commit ad252b2
committed
Extend rpm-ostreed.service idle-timeout
When making D-Bus calls to the rpm-ostreed.service, the service will
always exit after the specified idle-timeout has passed from when the
daemon was first created. Even if D-Bus calls are constantly being made,
the idle-timeout will still be enforced.
This commit subscribes to the bus, listening for new calls. If a call is
detected, the idle-timeout is reset. The service will only stop after
the idle-timeout has passed after the last call to the bus.
Signed-off-by: Luke Yang <luyang@redhat.com>1 parent 6987471 commit ad252b2
2 files changed
+28
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
562 | 562 | | |
563 | 563 | | |
564 | 564 | | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
565 | 579 | | |
566 | 580 | | |
567 | 581 | | |
| |||
571 | 585 | | |
572 | 586 | | |
573 | 587 | | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
574 | 594 | | |
575 | 595 | | |
576 | 596 | | |
| |||
618 | 638 | | |
619 | 639 | | |
620 | 640 | | |
621 | | - | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
622 | 645 | | |
623 | 646 | | |
624 | 647 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
0 commit comments