]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Fix zfs-share systemd unit file
authorLOLi <loli10K@users.noreply.github.com>
Fri, 13 Jan 2017 21:24:17 +0000 (22:24 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 13 Jan 2017 21:24:17 +0000 (13:24 -0800)
Use the system /bin directory rather than the package install
@bindir@.  This allows --prefix=/usr/local to work as intended.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #5559

etc/systemd/system/zfs-share.service.in

index 688731ea3e273c8a7d778f30ddf41d8b4e13a68d..494f5cbef75a5244af685c1492573847948bd895 100644 (file)
@@ -9,7 +9,7 @@ PartOf=smb.service
 [Service]
 Type=oneshot
 RemainAfterExit=yes
-ExecStartPre=-@bindir@/rm -f /etc/dfs/sharetab
+ExecStartPre=-/bin/rm -f /etc/dfs/sharetab
 ExecStart=@sbindir@/zfs share -a
 
 [Install]