mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 01:51:00 +03:00
Revert "systemd: Use non-absolute paths in Exec* lines"
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
This commit is contained in:
parent
93f8abeff0
commit
6c96269024
@ -15,7 +15,7 @@ ConditionPathIsDirectory=/sys/module/zfs
|
|||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
EnvironmentFile=-@initconfdir@/zfs
|
EnvironmentFile=-@initconfdir@/zfs
|
||||||
ExecStart=zpool import -c @sysconfdir@/zfs/zpool.cache -aN $ZPOOL_IMPORT_OPTS
|
ExecStart=@sbindir@/zpool import -c @sysconfdir@/zfs/zpool.cache -aN $ZPOOL_IMPORT_OPTS
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=zfs-import.target
|
WantedBy=zfs-import.target
|
||||||
|
@ -14,7 +14,7 @@ ConditionPathIsDirectory=/sys/module/zfs
|
|||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
EnvironmentFile=-@initconfdir@/zfs
|
EnvironmentFile=-@initconfdir@/zfs
|
||||||
ExecStart=zpool import -aN -o cachefile=none $ZPOOL_IMPORT_OPTS
|
ExecStart=@sbindir@/zpool import -aN -o cachefile=none $ZPOOL_IMPORT_OPTS
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=zfs-import.target
|
WantedBy=zfs-import.target
|
||||||
|
@ -12,7 +12,7 @@ ConditionPathIsDirectory=/sys/module/zfs
|
|||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
EnvironmentFile=-@initconfdir@/zfs
|
EnvironmentFile=-@initconfdir@/zfs
|
||||||
ExecStart=zfs mount -a
|
ExecStart=@sbindir@/zfs mount -a
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=zfs.target
|
WantedBy=zfs.target
|
||||||
|
@ -8,8 +8,8 @@ ConditionPathIsDirectory=/sys/module/zfs
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=-@initconfdir@/zfs
|
EnvironmentFile=-@initconfdir@/zfs
|
||||||
ExecStart=sh -c '\
|
ExecStart=/bin/sh -c '\
|
||||||
if zpool status %i | grep -q "scrub in progress"; then\
|
if @sbindir@/zpool status %i | grep -q "scrub in progress"; then\
|
||||||
exec zpool wait -t scrub %i;\
|
exec @sbindir@/zpool wait -t scrub %i;\
|
||||||
else exec zpool scrub -w %i; fi'
|
else exec @sbindir@/zpool scrub -w %i; fi'
|
||||||
ExecStop=-sh -c 'zpool scrub -p %i 2>/dev/null || true'
|
ExecStop=-/bin/sh -c '@sbindir@/zpool scrub -p %i 2>/dev/null || true'
|
||||||
|
@ -14,7 +14,7 @@ ConditionPathIsDirectory=/sys/module/zfs
|
|||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
EnvironmentFile=-@initconfdir@/zfs
|
EnvironmentFile=-@initconfdir@/zfs
|
||||||
ExecStart=zfs share -a
|
ExecStart=@sbindir@/zfs share -a
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=zfs.target
|
WantedBy=zfs.target
|
||||||
|
@ -8,8 +8,8 @@ ConditionPathIsDirectory=/sys/module/zfs
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=-@initconfdir@/zfs
|
EnvironmentFile=-@initconfdir@/zfs
|
||||||
ExecStart=sh -c '\
|
ExecStart=/bin/sh -c '\
|
||||||
if zpool status %i | grep -q "(trimming)"; then\
|
if @sbindir@/zpool status %i | grep -q "(trimming)"; then\
|
||||||
exec zpool wait -t trim %i;\
|
exec @sbindir@/zpool wait -t trim %i;\
|
||||||
else exec zpool trim -w %i; fi'
|
else exec @sbindir@/zpool trim -w %i; fi'
|
||||||
ExecStop=-sh -c 'zpool trim -s %i 2>/dev/null || true'
|
ExecStop=-/bin/sh -c '@sbindir@/zpool trim -s %i 2>/dev/null || true'
|
||||||
|
@ -9,7 +9,7 @@ ConditionPathIsDirectory=/sys/module/zfs
|
|||||||
Type=oneshot
|
Type=oneshot
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
EnvironmentFile=-@initconfdir@/zfs
|
EnvironmentFile=-@initconfdir@/zfs
|
||||||
ExecStart=zvol_wait
|
ExecStart=@bindir@/zvol_wait
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=zfs-volumes.target
|
WantedBy=zfs-volumes.target
|
||||||
|
@ -5,7 +5,7 @@ ConditionPathIsDirectory=/sys/module/zfs
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=-@initconfdir@/zfs
|
EnvironmentFile=-@initconfdir@/zfs
|
||||||
ExecStart=zed -F
|
ExecStart=@sbindir@/zed -F
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
Loading…
Reference in New Issue
Block a user