Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #175563

Re: systemd automount - Parameter TimeoutIdleSec ignored?

From Michael Biebl <biebl@debian.org>
Newsgroups linux.debian.user
Subject Re: systemd automount - Parameter TimeoutIdleSec ignored?
Date 2016-12-08 15:10 +0100
Message-ID <sM7yx-75R-7@gated-at.bofh.it> (permalink)
References <sM6Cu-6xE-17@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Am 08.12.2016 um 13:33 schrieb Andreas Born:
> Hi all,
> I need a device to be automatically mounted on access and unmounted when being
> idle. My /etc/fstab entry:
> 
> /dev/sdc1  /mnt/auto  ext4  defaults,noauto,x-systemd.automount,\
> x-systemd.idle-timeout=10   0   0
> 
> Systemd correctly creates the mnt-auto.mount und mnt-auto.automount unit files
> and automounting works perfectly.
> 
> x-systemd.idle-timeout=10 is getting translated to TimeoutIdleSec=10s within
> mnt-auto.automount. According to the manpages (sytemd.automount(5)),  the
> parameter TimeoutIdleSec specifies the time interval after which the device is
> to be be unmounted:
> 
> "TimeoutIdleSec: Configures an idle timeout. Once the mount has been idle for
> the specified time, systemd will attempt to unmount."
> 
> However, this never happens. It seems that this parameter is completely
> ignored and the device never unmounted.
> 
> Is it a bug, or what did i miss to get it working?

Are you sure nothing is keeping that FS busy?


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

systemd automount - Parameter TimeoutIdleSec ignored? Andreas Born <debian@abotech.de> - 2016-12-08 14:10 +0100
  Re: systemd automount - Parameter TimeoutIdleSec ignored? Michael Biebl <biebl@debian.org> - 2016-12-08 15:10 +0100
    Re: systemd automount - Parameter TimeoutIdleSec ignored? Andreas Born <debian@abotech.de> - 2016-12-11 18:30 +0100
      Re: systemd automount - Parameter TimeoutIdleSec ignored? Michael Biebl <biebl@debian.org> - 2016-12-18 03:40 +0100

csiph-web