Rename 'zed.service' to 'zfs-zed.service'
For consistency all systemd unit files and init scripts now share the same names. This prevents an issue where the zed is started twice on systems where both the systemd and sysv infrastructure is installed concurrently. For backward compatibility a 'zed' alias has been added. This allows the user to interact with the service using either the name 'zed' or 'zfs-zed'. Signed-off-by: Turbo Fredriksson <turbo@bayour.com> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue #3837
This commit is contained in:
parent
3ef005c674
commit
8f90f7372a
|
@ -2,7 +2,7 @@ systemdpreset_DATA = \
|
|||
50-zfs.preset
|
||||
|
||||
systemdunit_DATA = \
|
||||
zed.service \
|
||||
zfs-zed.service \
|
||||
zfs-import-cache.service \
|
||||
zfs-import-scan.service \
|
||||
zfs-mount.service \
|
||||
|
@ -10,7 +10,7 @@ systemdunit_DATA = \
|
|||
zfs.target
|
||||
|
||||
EXTRA_DIST = \
|
||||
$(top_srcdir)/etc/systemd/system/zed.service.in \
|
||||
$(top_srcdir)/etc/systemd/system/zfs-zed.service.in \
|
||||
$(top_srcdir)/etc/systemd/system/zfs-import-cache.service.in \
|
||||
$(top_srcdir)/etc/systemd/system/zfs-import-scan.service.in \
|
||||
$(top_srcdir)/etc/systemd/system/zfs-mount.service.in \
|
||||
|
|
|
@ -7,3 +7,6 @@ After=zfs-import-scan.service
|
|||
[Service]
|
||||
ExecStart=@sbindir@/zed -F
|
||||
Restart=on-abort
|
||||
|
||||
[Install]
|
||||
Alias=zed.service
|
|
@ -2,7 +2,7 @@
|
|||
Description=ZFS startup target
|
||||
Requires=zfs-mount.service
|
||||
Requires=zfs-share.service
|
||||
Wants=zed.service
|
||||
Wants=zfs-zed.service
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
Loading…
Reference in New Issue