On 20/05/16 11:47, Filippo Giunchedi wrote: > I noticed on bigger prometheus instances it might take quite some time after > 'stop' is requested before the storage is completely flushed to disk, I'm > proposing to add TimeoutStopSec= to the service file to have systemd wait > before SIGTERM, not sure about the default value, 5m perhaps? Alternatively > mentioning it README.Debian would do too.
Makes sense. For sysvinit I am making it wait almost 20 seconds, and after that the action just fails (instead of SIGKILLing it). If systemd does not have that option, I would say wait up to one minute. Care to send a patch? I don't use systemd, so I have no clue about it :) -- Martín Ferrari (Tincho)

