[systemd-devel] [PATCH] automount: add expire support

Karel Zak kzak at redhat.com
Tue Apr 14 03:47:39 PDT 2015


On Sun, Apr 12, 2015 at 10:33:54PM +0200, Jan Luca Naumann wrote:
> I'm not a systemd-developer so I want to ask you if it is possible to
> add a hook for execute something after the unmount (for example to
> delete the mount directory)?

 well, /proc/mount and /proc/self/mountinfo are poll-able, so you do
 not need systemd to listen for the changes.

    findmnt --first-only --poll=umount /mnt/foo
    rmdir /mnt/foo


 Karel

-- 
 Karel Zak  <kzak at redhat.com>
 http://karelzak.blogspot.com


More information about the systemd-devel mailing list