Skip to content

Commit

Permalink
lazy-umount-nfs.service: Try normal umount first
Browse files Browse the repository at this point in the history
When this service is started, automount already attempted to unmount the
nfs mounts it is responsible for. However, we may have other nfs mounts
(e.g. those done manually by a system administrator). If we just
disconnect those, we would shutdown before attempting to write dirty
data back and release delegations and locks on the server.

Try a normal umount before we give up and just disconnect the mounts.
  • Loading branch information
donald committed Feb 15, 2018
1 parent 1d5150e commit 0329adc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions misc_systemd_units/lazy-umount-nfs.service
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ DefaultDependencies=false
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/umount -a -t nfs4
ExecStart=/bin/umount -a -t nfs4 -l

[Install]
Expand Down

0 comments on commit 0329adc

Please sign in to comment.