schroot: please provide a systemd service file

Laurent Bigonville bigon at debian.org
Wed Feb 15 11:28:36 GMT 2017


tag 835104 + patch
thanks

On Mon, 22 Aug 2016 15:59:24 +0200 Aurelien Jarno <aurel32 at debian.org> 
wrote:
 > Dear Maintainer,
 >
 > schroot provides an initscript which can take quite some time to
 > execute, for example if configured to end up all active sessions. When
 > running under systemd, it is often killed after the default 90 seconds
 > timeout. This happens regularly on the Debian porterboxes where many
 > users leave their chroot sessions opened.
 >
 > The solution is probably to provide a systemd service file running in
 > oneshot mode, so that it defaults to no timeout.

I've attached here a patch to add a .service file, it calls the 
initscript, this is a quick solution but it should work.

I didn't add any dependency against LVM because the VG should already 
for all services that have DefaultDependencies=yes (the default) defined.

I also see that the LSB initscript has a dependency against the network, 
any idea why this is needed? Was this necessary to guarantee the network 
shares? Or was it for something else?

Maybe a RequiresMountsFor=/var/lib/schroot could also be added?

On my laptop, schroot is the last LSB initscript without equivalent that 
requires the $network facility, in some situation, this makes the boot 
stall for around 20s (as it waits for the network to come online). Could 
it still be an option to add that for stretch?

Regards,

Laurent Bigonville
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 835104.patch
Type: text/x-patch
Size: 1405 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20170215/05839cdf/attachment.bin>


More information about the Pkg-systemd-maintainers mailing list