1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-04 09:18:36 +03:00
lvm2/scripts/lvm2_lvmetad_systemd_red_hat.service.in
Peter Rajnoha dac3c36feb 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.
2012-02-23 13:31:49 +00:00

17 lines
332 B
SYSTEMD

[Unit]
Description=LVM2 metadata daemon
Requires=lvm2-lvmetad.socket
After=lvm2-lvmetad.socket
DefaultDependencies=no
Conflicts=shutdown.target
[Service]
Type=forking
ExecStart=@sbindir@/lvmetad
ExecStartPost=@sbindir@/vgscan
ExecReload=@sbindir@/lvmetad -R
PIDFile=@DEFAULT_RUN_DIR@/lvmetad.pid
[Install]
WantedBy=sysinit.target