Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lazy-umount-nfs.service: Run after automount shutdown
lazy-umount-nfs.service sometimes stalled for several seconds during shutdown. The assumed reason is, that is was started while automount was still shuting down - possibly triggering new automounts. Add a order dependency for automount.service. During shutdown, automount.service is stopped (by its default dependency on shutdown.target) and this service is started by its explicit dependency on shutdown.target. We could use "After=" or "Before=" [1], but "After=" seems a bit more intuitive to me ("start lazy-umount-nfs.service AFTER automount.service was stopped"). [1] `man systemd.unit` : If one unit with an ordering dependency on another unit is shut down while the latter is started up, the shut down is ordered before the start-up regardless whether the ordering dependency is actually of type After= or Before=.
- Loading branch information