Skip to content

Commit

Permalink
Merge pull request #20 from mariux64/improve-lazy-umount-nfs
Browse files Browse the repository at this point in the history
Improve lazy_umount_nfs.service
  • Loading branch information
pmenzel authored Feb 15, 2018
2 parents f5513d4 + 0329adc commit 94dc369
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ mkdir -p "$DESTDIR$usrlocal_bindir"
install_exec make-automaps/make-automaps "$DESTDIR$usr_sbindir/make-automaps"
install_data misc_systemd_units/automount.service "$DESTDIR$systemdunitdir/automount.service"
install_data misc_systemd_units/gdm.service "$DESTDIR$systemdunitdir/gdm.service"
install_data misc_systemd_units/lazy-umount-nfs.service "$DESTDIR$systemdunitdir/lazy-umount-nfs.service"
install_exec mxgrub/mxgrub "$DESTDIR$usr_sbindir/mxgrub"
install_exec mxnetctl/mxnetctl "$DESTDIR$usr_sbindir/mxnetctl"
install_exec mxrouter/mxrouterctl "$DESTDIR$usr_sbindir/mxrouterctl"
Expand Down
14 changes: 14 additions & 0 deletions misc_systemd_units/lazy-umount-nfs.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[Unit]
Description=Lazy Umount NFS
Before=shutdown.target
After=automount.service
DefaultDependencies=false

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/umount -a -t nfs4
ExecStart=/bin/umount -a -t nfs4 -l

[Install]
WantedBy=shutdown.target

0 comments on commit 94dc369

Please sign in to comment.