Commit d991fc7
committed
Add: feature to gracefully shutdown/wake kafka
sleep_hook is called both before suspend and after system wakes up from suspend.
Before suspend, it stops Zookeeper, broker, mirror services along with all the
logging services.
After waking up, it restarts everything.1 parent 19f4c1d commit d991fc7
1 file changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
0 commit comments