| Summary: | dev-db/redis - allow waiting more time for shutting down redis (or add possibility to configure timeout in conf.d/redis file) | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Marcin Mirosław <bug> |
| Component: | Current packages | Assignee: | Robin Johnson <robbat2> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | bugs, djc, lu_zero |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Bug Depends on: | |||
| Bug Blocks: | 478536 | ||
| Attachments: |
redis.initd-v3
redis.initd-v3 |
||
|
Description
Marcin Mirosław
2013-06-11 10:25:56 UTC
Created attachment 356828 [details]
redis.initd-v3
Here's a new init script that uses --retry. 30 should be enough? Bug reporter, please let me know.
Created attachment 357030 [details]
redis.initd-v3
Updated init script: s/var//
Fixed. Hi! It seems new init files still doesn't fix this issue. # time /etc/init.d/redis stop * Caching service dependencies ... [ ok ] * Stopping redis ... * start-stop-daemon: 1 process refused to stop [ ok ] real 0m6.471s user 0m0.477s sys 0m0.478s 30s+ is crazy man :) Anyway, I see no issue exposing timeout in conf.d. I'll do it on next revbump. 30s is maybe very (and too) high value but 5s is a little too low. I've got redis with db size ~ 630MB: kill $(cat /run/redis/redis.pid) && date; while [ -f /run/redis/redis.pid ]; do sleep 0.1; done; date Mon Sep 15 11:11:30 CEST 2014 Mon Sep 15 11:11:36 CEST 2014 Fyi, new init in 2.8.16, see bug 522118. |