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:
parent
011ef12c7a
commit
80b485246a
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[Unit]
|
||||
Description=ZFS pool import target
|
||||
Before=dracut-mount.service
|
||||
|
||||
[Install]
|
||||
WantedBy=zfs-mount.service
|
||||
WantedBy=zfs.target
|
||||
|
|
|
@ -13,5 +13,4 @@ RemainAfterExit=yes
|
|||
ExecStart=@sbindir@/zfs mount -a
|
||||
|
||||
[Install]
|
||||
WantedBy=zfs-share.service
|
||||
WantedBy=zfs.target
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue