mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
93945bb616
LISTEN_PID and LISTEN_FDS environment variables are defined only during systemd "start" action. But we still need to know whether we're activated during "reload" action as well - we use the reload action to call "dmeventd -R"/"lvmetad -R" for statefull daemon restart. We can't use normal "restart" as that is simply composed of "stop" and "start" and we would lose any state the daemon has.
20 lines
394 B
SYSTEMD
20 lines
394 B
SYSTEMD
[Unit]
|
|
Description=LVM2 metadata daemon
|
|
Requires=lvm2-lvmetad.socket
|
|
After=lvm2-lvmetad.socket
|
|
DefaultDependencies=no
|
|
Conflicts=shutdown.target
|
|
|
|
[Service]
|
|
Type=forking
|
|
NonBlocking=true
|
|
ExecStart=@sbindir@/lvmetad
|
|
ExecStartPost=@sbindir@/vgscan
|
|
ExecReload=@sbindir@/lvmetad -R
|
|
Environment=SD_ACTIVATION=1
|
|
Restart=on-abort
|
|
PIDFile=@DEFAULT_RUN_DIR@/lvmetad.pid
|
|
|
|
[Install]
|
|
WantedBy=sysinit.target
|