diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2012-02-23 13:31:49 +0000 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2012-02-23 13:31:49 +0000 |
commit | dac3c36feb75aac1a7989781dc63fdca4dd5407f (patch) | |
tree | c9c8378a313cf585fb2a449938685c98460b6aaa /scripts/lvm2_lvmetad_systemd_red_hat.service.in | |
parent | 43a44a1e2a18a7b55c1c10613ac142da7530b4d8 (diff) | |
download | lvm2-dac3c36feb75aac1a7989781dc63fdca4dd5407f.tar.gz lvm2-dac3c36feb75aac1a7989781dc63fdca4dd5407f.tar.xz lvm2-dac3c36feb75aac1a7989781dc63fdca4dd5407f.zip |
Use DEFAULT_RUN_DIR instead of hardcoded value in lvmetad systemd units
and add ExecStartPost=vgscan to actually run the first scan that will
fill the metadata daemon with metadata information.
Diffstat (limited to 'scripts/lvm2_lvmetad_systemd_red_hat.service.in')
-rw-r--r-- | scripts/lvm2_lvmetad_systemd_red_hat.service.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/lvm2_lvmetad_systemd_red_hat.service.in b/scripts/lvm2_lvmetad_systemd_red_hat.service.in index f0f603ed..09c46e14 100644 --- a/scripts/lvm2_lvmetad_systemd_red_hat.service.in +++ b/scripts/lvm2_lvmetad_systemd_red_hat.service.in @@ -8,8 +8,9 @@ Conflicts=shutdown.target [Service] Type=forking ExecStart=@sbindir@/lvmetad +ExecStartPost=@sbindir@/vgscan ExecReload=@sbindir@/lvmetad -R -PIDFile=/var/run/lvm/lvmetad.pid +PIDFile=@DEFAULT_RUN_DIR@/lvmetad.pid [Install] WantedBy=sysinit.target |