Advertisement
Guest User

zfs systemd service

a guest
Nov 27th, 2012
319
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement