mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-22 17:35:59 +03:00
23a88f868d
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.
18 lines
336 B
SYSTEMD
18 lines
336 B
SYSTEMD
[Unit]
|
|
Description=Device-mapper event daemon
|
|
Requires=dm-event.socket
|
|
After=dm-event.socket
|
|
Before=local-fs.target
|
|
DefaultDependencies=no
|
|
|
|
[Service]
|
|
Type=forking
|
|
ExecStart=@sbindir@/dmeventd
|
|
ExecReload=@sbindir@/dmeventd -R
|
|
Environment=SD_ACTIVATION=1
|
|
PIDFile=@DMEVENTD_PIDFILE@
|
|
OOMScoreAdjust=-1000
|
|
|
|
[Install]
|
|
WantedBy=sysinit.target
|