Re: setting up systemd units for dm-crypt devices
On Mon, Jan 25, 2016 at 5:59 PM, Jonathan Dowland <jmtd@debian.org> wrote:
> Less important for me but still to figure out, where to put the magic so
> that 'systemctl stop /mountpoint' also disables the relevant VG and closes
> the luks device. (I would like to do this with a removable drive in the
> near future so it will be necessary then).
According to "man systemd.unit" there's a "StopWhenUnneeded" parameter
that you could set on your VGs and luks services. This should do what
you want automatically, but it might not exist in Jessie.
Reply to: