mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 11:29:36 +03:00
79b20949b2
Since systemd v239, Exec* binaries are resolved from PATH when they are not-absolute. Switch to this by default for ease of downstream maintenance. Many downstream distributions move individual binaries to locations that existing compile-time configurations cannot accommodate. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com> Closes #14880
21 lines
462 B
SYSTEMD
21 lines
462 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=zfs share -a
|
|
|
|
[Install]
|
|
WantedBy=zfs.target
|