mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 18:11:00 +03:00
e79a6bacc6
Debian based systems use nfs-kernel-server as the service name. List both nfs-server.service and nfs-kernel-server.service so this service will work on multiple distributions. Signed-off-by: Grischa Zengel <github.zfsonlinux@zengel.info> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #4350
15 lines
354 B
SYSTEMD
15 lines
354 B
SYSTEMD
[Unit]
|
|
Description=ZFS file system shares
|
|
After=nfs-server.service nfs-kernel-server.service
|
|
After=smb.service
|
|
After=zfs-mount.service
|
|
Requires=zfs-mount.service
|
|
PartOf=nfs-server.service nfs-kernel-server.service
|
|
PartOf=smb.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|
|
ExecStartPre=-@bindir@/rm /etc/dfs/sharetab
|
|
ExecStart=@sbindir@/zfs share -a
|