This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

zfs systemd service

By: a guest on Nov 27th, 2012  |  syntax: None  |  size: 0.47 KB  |  views: 224  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. [Unit]
  2. Description=ZFS Zettabyte File System
  3. Documentation=man:zfs(8) man:zpool(8)
  4. DefaultDependencies=no
  5. After=cryptsetup.target
  6. Before=local-fs.target
  7. Conflicts=shutdown.target umount.target
  8.  
  9. [Service]
  10. Type=oneshot
  11. RemainAfterExit=yes
  12. ExecStart=/sbin/modprobe zfs
  13. ExecStart=/usr/sbin/zpool import -c /etc/zfs/zpool.cache -aN
  14. ExecStart=/usr/sbin/zfs mount -a
  15. ExecStart=/usr/sbin/zfs share -a
  16. ExecStop=/usr/sbin/zfs umount -a
  17.  
  18. [Install]
  19. WantedBy=local-fs.target
clone this paste RAW Paste Data