Cleanup systemd dependencies

Some redundancy is present in the systemd dependencies, as
noticed in PR#6764. Existing setups might rely on these quirks,
so these cleanups have been moved to the development branch.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
Closes #6822
This commit is contained in:
Antonio Russo 2017-11-08 12:39:15 -05:00 committed by Brian Behlendorf
parent 011ef12c7a
commit 80b485246a
7 changed files with 4 additions and 7 deletions

View File

@ -1,6 +1,7 @@
# ZFS is enabled by default
enable zfs-import-cache.service
disable zfs-import-scan.service
enable zfs-import.target
enable zfs-mount.service
enable zfs-share.service
enable zfs-zed.service

View File

@ -6,7 +6,6 @@ Requires=systemd-udev-settle.service
After=systemd-udev-settle.service
After=cryptsetup.target
After=systemd-remount-fs.service
Before=dracut-mount.service
Before=zfs-import.target
ConditionPathExists=@sysconfdir@/zfs/zpool.cache

View File

@ -5,7 +5,6 @@ DefaultDependencies=no
Requires=systemd-udev-settle.service
After=systemd-udev-settle.service
After=cryptsetup.target
Before=dracut-mount.service
Before=zfs-import.target
ConditionPathExists=!@sysconfdir@/zfs/zpool.cache

View File

@ -1,6 +1,6 @@
[Unit]
Description=ZFS pool import target
Before=dracut-mount.service
[Install]
WantedBy=zfs-mount.service
WantedBy=zfs.target

View File

@ -13,5 +13,4 @@ RemainAfterExit=yes
ExecStart=@sbindir@/zfs mount -a
[Install]
WantedBy=zfs-share.service
WantedBy=zfs.target

View File

@ -3,7 +3,7 @@ Description=ZFS file system shares
Documentation=man:zfs(8)
After=nfs-server.service nfs-kernel-server.service
After=smb.service
After=zfs-mount.service
Wants=zfs-mount.service
PartOf=nfs-server.service nfs-kernel-server.service
PartOf=smb.service

View File

@ -1,8 +1,7 @@
[Unit]
Description=ZFS Event Daemon (zed)
Documentation=man:zed(8)
After=zfs-import-cache.service
After=zfs-import-scan.service
After=zfs-import.target
[Service]
ExecStart=@sbindir@/zed -F