Re: Long wait for start job

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 19/06/2021 09:26, Chris Murphy wrote:
I make fstab mount options include:

nofail,noauto,x-systemd.automount

That way it is only mounted on demand, i.e. when the mount point is "touched".

It's also possible to use x-systemd.idle-timeout=300 which will
unmount it after 5 minutes idle.


I'll admit that I've lost track of this thread.  I think it is more about poc's issue than the
OP.  And, I don't know if poc has given up on the systemd mounts.

While I don't have a dock, I do use systemd's automount features on some NAS mounts
as I don't want/need them to be mounted all the time.  They have been mounted at boot time
even though I thought they should not have been.  I'm pretty sure poc's systemd units
were close to mine.  I created my systemd units as described in various tutorials.
The mount unit does contain noauto in the options.
The mounting at boot time didn't bother me since they take no time.

Today I decided to make a change to my units in /etc/systemd/system.

I removed the WantedBy=multi-user.target from the mount unit.  I then did a daemon-reload.
I noted that there were 2 broken syslinks associated with the mounts in
/etc/systemd/system/multi-user.target.wants so I deleted them.  I then rebooted.

It was then I realized I'd forgotten to check that I'd enabled the automount unit.  I hadn't.
So, I enabled it and rebooted.

The mount no longer happens at boot time and the status of the automount unit is
Active: active (waiting).  And everything works as expected.  Mount upon accessing the
mount point and unmounting happening after the timeout has expired.


--
Remind me to ignore comments which aren't germane to the thread.

_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux