Advertisement
Guest User

Untitled

a guest
Nov 24th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. systemctl cat nfs-server
  2. # /usr/lib/systemd/system/nfs-server.service
  3. [Unit]
  4. Description=NFS server and services
  5. DefaultDependencies=no
  6. Requires= network.target proc-fs-nfsd.mount
  7. Requires= nfs-mountd.service
  8. Wants=rpcbind.socket
  9. Wants=rpc-statd.service nfs-idmapd.service
  10. Wants=rpc-statd-notify.service
  11.  
  12. After= local-fs.target
  13. After= network.target proc-fs-nfsd.mount rpcbind.socket nfs-mountd.service
  14. After= nfs-idmapd.service rpc-statd.service
  15. Before= rpc-statd-notify.service
  16.  
  17. # GSS services dependencies and ordering
  18. Wants=auth-rpcgss-module.service
  19. After=rpc-gssd.service gssproxy.service rpc-svcgssd.service
  20.  
  21. [Service]
  22. Type=oneshot
  23. RemainAfterExit=yes
  24. ExecStartPre=/usr/sbin/exportfs -r
  25. ExecStart=/usr/sbin/rpc.nfsd
  26. ExecStop=/usr/sbin/rpc.nfsd 0
  27. ExecStopPost=/usr/sbin/exportfs -au
  28. ExecStopPost=/usr/sbin/exportfs -f
  29.  
  30. ExecReload=/usr/sbin/exportfs -r
  31.  
  32. [Install]
  33. WantedBy=multi-user.target
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement