Commit 7af8b28
committed
Stop SMGC service on SR detach to prevent orphaned systemd units
This is not done on every and each implementation of SR but only on ones that calls cleanup.start_gc_service (like FileSR)
and on the classes that inherits from them and don't call super on detach.
This is to prevent useless errors logs like Failed to stop xxx.service: Unit xxx.service not loaded.
Signed-off-by: Mathieu Labourier <mathieu.labourier@vates.tech>1 parent 921f385 commit 7af8b28
2 files changed
Lines changed: 24 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3948 | 3948 | | |
3949 | 3949 | | |
3950 | 3950 | | |
| 3951 | + | |
3951 | 3952 | | |
3952 | 3953 | | |
3953 | 3954 | | |
| |||
4021 | 4022 | | |
4022 | 4023 | | |
4023 | 4024 | | |
| 4025 | + | |
| 4026 | + | |
| 4027 | + | |
| 4028 | + | |
| 4029 | + | |
| 4030 | + | |
| 4031 | + | |
| 4032 | + | |
| 4033 | + | |
| 4034 | + | |
| 4035 | + | |
| 4036 | + | |
4024 | 4037 | | |
4025 | 4038 | | |
4026 | 4039 | | |
| |||
4031 | 4044 | | |
4032 | 4045 | | |
4033 | 4046 | | |
4034 | | - | |
4035 | 4047 | | |
4036 | | - | |
4037 | | - | |
4038 | | - | |
4039 | | - | |
4040 | | - | |
| 4048 | + | |
| 4049 | + | |
4041 | 4050 | | |
| 4051 | + | |
| 4052 | + | |
| 4053 | + | |
| 4054 | + | |
| 4055 | + | |
| 4056 | + | |
| 4057 | + | |
| 4058 | + | |
4042 | 4059 | | |
4043 | 4060 | | |
4044 | 4061 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
410 | | - | |
411 | | - | |
| 410 | + | |
412 | 411 | | |
413 | 412 | | |
414 | 413 | | |
| |||
0 commit comments