1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

Use pvscan --cache instead of vgscan in lvmetad init script and systemd unit.

This commit is contained in:
Peter Rajnoha 2012-03-16 15:12:04 +00:00
parent 6bf324c4fd
commit d837eebdcc
2 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ DAEMON=lvmetad
exec_prefix=@exec_prefix@
sbindir=@sbindir@
lvm_vgscan=${sbindir}/vgscan
lvm_pvscan="${sbindir}/lvm pvscan --cache"
LOCK_FILE="/var/lock/subsys/$DAEMON"
PID_FILE="@DEFAULT_RUN_DIR@/${DAEMON}.pid"
@ -55,7 +55,7 @@ rh_status_q() {
start()
{
ret=0
action "Starting LVM metadata daemon:" $DAEMON && ${lvm_vgscan} || ret=$?
action "Starting LVM metadata daemon:" $DAEMON && ${lvm_pvscan} > /dev/null || ret=$?
return $ret
}

View File

@ -9,7 +9,7 @@ Conflicts=shutdown.target
Type=forking
NonBlocking=true
ExecStart=@sbindir@/lvmetad
ExecStartPost=@sbindir@/vgscan
ExecStartPost=@sbindir@/lvm pvscan --cache
ExecReload=@sbindir@/lvmetad -R
Environment=SD_ACTIVATION=1
Restart=on-abort