On 2017-06-19 15:08, Raphael Hertzog wrote: > [ Putting Aurélion in copy since he's the one who requested this service > file ] > > On Sun, 18 Jun 2017, Michael Biebl wrote: > > Am 17.06.2017 um 22:27 schrieb Michael Biebl: > > > > > For that create a file > > > /lib/systemd/system/schroot.service.d/timeout.conf (feel free to choose > > > a better name), containing: > > > > > > [Service] > > > Type=oneshot > > > TimeoutSec=infinity > > > > If you only need to change the timeout, I probably wouldn't change Type= > > at all, but only set TimeoutSec= via a drop-in. > > The default is 5min for SysV init scripts. > > I'm surprised that #835104 says that the init scripts are killed after > > 90sec though. > > Can schroot take longer then 5min to start or stop? Do we really need to > > disable the timeout completely (infinity) or would simply increasing the > > value to say 15min be sufficient? > > Aurélien, can you answer Michael's question ?
DSA uses this init script with SESSIONS_RECOVER="end" in /etc/default/schroot. When there are dozen of chroots opened (which is common on the porterboxes), the current script takes more than 5 minutes to cleanup all the chroots upon reboot. I guess increasing the timeout is fine, 15min would already be a good start. Aurelien -- Aurelien Jarno GPG: 4096R/1DDD8C9B [email protected] http://www.aurel32.net

