Skip to content

Instantly share code, notes, and snippets.

@jasonrm
Created April 28, 2014 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonrm/11374817 to your computer and use it in GitHub Desktop.
Save jasonrm/11374817 to your computer and use it in GitHub Desktop.
[Unit]
Description=Zettabyte File System (ZFS)
Documentation=man:zfs(8) man:zpool(8)
DefaultDependencies=no
After=cryptsetup.target
Before=local-fs.target
Conflicts=shutdown.target umount.target
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/zfs mount -a
ExecStart=/usr/bin/zfs share -a
ExecStop=/usr/bin/zfs umount -a
[Install]
WantedBy=local-fs.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment