Skip to content

Commit

Permalink
Rename 'zed.service' to 'zfs-zed.service'
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Issue openzfs#3837
  • Loading branch information
FransUrbo authored and behlendorf committed Oct 2, 2015
1 parent 3ef005c commit 8f90f73
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions etc/systemd/system/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ systemdpreset_DATA = \
50-zfs.preset

systemdunit_DATA = \
zed.service \
zfs-zed.service \
zfs-import-cache.service \
zfs-import-scan.service \
zfs-mount.service \
zfs-share.service \
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 \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ After=zfs-import-scan.service
[Service]
ExecStart=@sbindir@/zed -F
Restart=on-abort

[Install]
Alias=zed.service
2 changes: 1 addition & 1 deletion etc/systemd/system/zfs.target.in
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8f90f73

Please sign in to comment.