mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 19:39:35 +03:00
6c96269024
This reverts commit 79b20949b2
since it
doesn't work with the systemd version shipped with RHEL7-based systems.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rich Ercolani <rincebrain@gmail.com>
Closes #14943
Closes #14945
21 lines
472 B
SYSTEMD
21 lines
472 B
SYSTEMD
[Unit]
|
|
Description=ZFS file system shares
|
|
Documentation=man:zfs(8)
|
|
Before=nfs-server.service nfs-kernel-server.service
|
|
After=smb.service
|
|
Before=rpc-statd-notify.service
|
|
Wants=zfs-mount.service
|
|
After=zfs-mount.service
|
|
PartOf=nfs-server.service nfs-kernel-server.service
|
|
PartOf=smb.service
|
|
ConditionPathIsDirectory=/sys/module/zfs
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
EnvironmentFile=-@initconfdir@/zfs
|
|
ExecStart=@sbindir@/zfs share -a
|
|
|
|
[Install]
|
|
WantedBy=zfs.target
|