Bug#821944: [systemd] automounts not unmounted after timeout
Michael Biebl
biebl at debian.org
Sun Dec 18 22:23:23 GMT 2016
Control: tags -1 + moreinfo unreproducible
Hi,
On Wed, 20 Apr 2016 18:49:21 +0200 Markus Grunwald <markus at the-grue.de> wrote:
> Package: systemd
> Version: 229-4
> Severity: normal
>
> --- Please enter the report below this line. ---
>
> I have an automount configured so that it should unmount after 300s, but it is
> not unmounted:
>
> From man systemd.automount:
> TimeoutIdleSec=
> Configures an idle timeout. Once the mount has been idle for the
> specified time, systemd will attempt to unmount.
>
> % cat /etc/systemd/system/mnt-vdr.automount
> [Unit]
> Description=VDR recordings
> ConditionPathExists=/mnt/vdr
> Wants=network.target
> After=network.target
>
> [Automount]
> Where=/mnt/vdr
> TimeoutIdleSec=300
>
> [Install]
> WantedBy=multi-user.target
^
remote-fs.target would probably be more suitable.
Can you also attach the corresponding mount unit or fstab entry?
Fwiw, I've tried (with systemd 232-7) both a local and remote
(auto)mount.
This is the /etc/fstab I used
# local
LABEL=test /mnt/local ext4 noauto,x-systemd.automount,x-systemd.idle-timeout=30 0 0
# remote
10.20.30.40 /mnt/remote nfs noauto,x-systemd.automount,x-systemd.idle-timeout=30 0 0
In both cases, the idle timeout worked properly
and the file systems were unmounted after 30 seconds.
Regards,
Michael
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-systemd-maintainers/attachments/20161218/5b8cd9a7/attachment.sig>
More information about the Pkg-systemd-maintainers
mailing list