mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
0a726a7e26
We already used Conflicts=shutdown target to stop LVM2 services on shutdown. But we still missed the ordering - the shutdown.target should be reached only after all the services are really stopped. Reported here: https://github.com/lvmteam/lvm2/issues/17
17 lines
338 B
SYSTEMD
17 lines
338 B
SYSTEMD
[Unit]
|
|
Description=LVM2 metadata daemon
|
|
Documentation=man:lvmetad(8)
|
|
Requires=lvm2-lvmetad.socket
|
|
Before=shutdown.target
|
|
After=lvm2-lvmetad.socket
|
|
DefaultDependencies=no
|
|
Conflicts=shutdown.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
NonBlocking=true
|
|
ExecStart=@SBINDIR@/lvmetad -f
|
|
Environment=SD_ACTIVATION=1
|
|
Restart=on-abort
|
|
PIDFile=@LVMETAD_PIDFILE@
|