From 881f45c6a8f44486f76c4713ecef0d533d6601e8 Mon Sep 17 00:00:00 2001 From: Ralf Ertzinger Date: Sun, 19 Jan 2014 15:36:49 +0100 Subject: Add systemd unit files for ZFS startup This adds systemd unit files replacing the functionality offered by the SysV init script found in etc/init.d. It has been developed and tested on Fedora 19, Fedora 20 and openSuSE 13.1. Four unit files and one target are offered. zfs-import-cache.service: Import pools from /etc/zfs/zpool.cache. This unit will wait for udev to settle. zfs-import-scan.service: Import pools by scanning /dev/disk/by-id for zvols. This unit will only run if /etc/zfs/zpool.cache is not present. This unit will wait for udev to settle zfs-mount.service: Mount ZFS native filesystems. It contains a dependency to be loaded before local-fs.target. zfs-share.service: Share NFS/SMB filesystems. This unit contains a dependency that will cause it to be restarted whenever the smb or nfs-server unit is restarted, restoring the shares added. zfs.target: This target pulls in the other units in order to start ZFS. It's the only unit that can be enabled/disabled, all other services are static and pulled in by dependencies. It will honour zfs=off and zfs=no options on the kernel command line. Signed-off-by: Brian Behlendorf Closes #2108 --- etc/systemd/Makefile.am | 1 + 1 file changed, 1 insertion(+) create mode 100644 etc/systemd/Makefile.am (limited to 'etc/systemd/Makefile.am') diff --git a/etc/systemd/Makefile.am b/etc/systemd/Makefile.am new file mode 100644 index 000000000..d4008c0dd --- /dev/null +++ b/etc/systemd/Makefile.am @@ -0,0 +1 @@ +SUBDIRS = system -- cgit v1.2.3