Commit 67f0395
authored
Best effort start/stop logrotate.timer systemd service for loganalyzer (#5582)
What is the motivation for this PR?
PR #5414 introduced code to stop/start the logrotate.timer systemd service for
loganalyzer. On older images that do not have the logrotate.timer service,
this operation will fail.
How did you do it?
This change made stopping/starting logrotate.time a best effort operation.
Signed-off-by: Xin Wang <[email protected]>1 parent fa0507a commit 67f0395
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
36 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | | - | |
61 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
62 | 64 | | |
63 | 65 | | |
64 | 66 | | |
| |||
0 commit comments