SHARE
TWEET

zfs systemd service

a guest Nov 27th, 2012 226 Never
  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
RAW Paste Data
Top