summaryrefslogtreecommitdiff
path: root/scripts/dm_event_systemd_red_hat.service.in
Commit message (Collapse)AuthorAgeFilesLines
* systemd: remove Install sections from socket-activated servicesBastian Blank2017-11-011-3/+0
| | | | | | | | | We always preferred and recommended socket activation for our services so remove the Install section in related .service units which are unused in this case and keep only the Install section in associated .socket units. Signed-off-by: Bastian Blank <waldi@debian.org>
* systemd: use proper sbindir pathZdenek Kabelac2017-10-251-1/+1
| | | | | | | | | | | | Replace lowercase @sbindir@ with @SBINDIR@ which contains fully decoded path. Same with @usrsbindir@ which is also used with clvmd and cmirrord. Also handle SYSCONFDIR for EnvironmentFile. Patch fixes generated unit files with strings like: ExecStart=${exec_prefix}/sbin/lvm
* dmeventd: ensure systemd service gets stopped on shutdownThomas Lamprecht2017-10-051-1/+2
| | | | | | | | | | | | | | | | | | | | Add these for dmeventd systemd unit (dm-event.service): Before: shutdown.target Conflicts: shutdown.target This will cause the dmeventd to be properly stopped at shutdown (after all the dmeventd clients unregistered their devices from monitoring) with dm-event.service's stop action (there's no direct action defined for the "stop" so systemd sends SIGTERM instead). Before, we let dmeventd to get killed only as part of the very last SIGTERM/SIGKILL for all the remaining processes late in the shutdown sequence so we may have missed some logs if dmeventd encountered an error during its shutdown (logging facilities are already off at this late time in shutdown sequence). Ref: https://www.redhat.com/archives/lvm-devel/2017-October/msg00000.html
* systemd: use {local,remote}-fs-pre.target instead of {local,remote}-fs.targetPeter Rajnoha2015-09-231-1/+1
| | | | | | | | | | We want most of our units to be started before any local/remote mount points are mounted - we used {local,remote}-fs.target for this purpose before, but it was not 100% correct as there's even {local,remote}-fs-pre.target special systemd unit reserved for this exact purpose. See also man 7 systemd.special and "local-fs-pre.target"/"remote-fs-pre.target" description.
* dmeventd: fix dmeventd -R to work properly with systemdPeter Rajnoha2014-02-061-3/+2
| | | | | | | | | | | | | | | | | Trying to restart dmeventd as a reload action is causing problems under systemd environment. The systemd loses track of new dmeventd this way. See also https://bugzilla.redhat.com/show_bug.cgi?id=1060134 for more info. We need to call dmeventd -R directly instead of "systemctl reload dm-event.service" that was used before (the reload is aimed at configuration reload anyway, not stateful restart of the daemon - we did this before just because there's no ExecRestart in systemd and there's only ExecStart and ExecStop with which we'd lose the state). Also, use ExecStart="dmeventd -f" to run dmeventd in foreground (and let's rely on systemd to daemonize it) and change the service type from "forking" to "simple".
* systemd: Add Documentation referencesPeter Rajnoha2012-06-201-0/+1
| | | | These documentation references show up in "systemctl status" output.
* Use SD_ACTIVATION env. var. in systemd units to better detect systemd in use.Peter Rajnoha2012-03-141-0/+1
| | | | | | | | 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.
* Clean up systemd unit ordering and requirements.Peter Rajnoha2012-02-011-1/+2
|
* Add "ExecReload" to dm-event.service for systemd to reload dmeventd properly.Peter Rajnoha2011-10-311-0/+1
| | | | | | | | | | | | | Normally, restart simply means "stop and start" for systemd. However, if we're installing new versions of the dmeventd binary/libdevmapper, we need to restart dmeventd. This fails if we have some devices monitored - we need to call "dmeventd -R" instead. The "ExecReload" did not work quite well in some old versions of systemd, systemd assumed that only the configuration is reloaded on "ExecReload", not the whole binary itself so it lost track of dmeventd daemon (it lost new dmeventd PID). This is fixed and seems to be working fine now with recent versions of dmeventd.
* Add systemd unit files for dmeventd.Peter Rajnoha2011-07-281-0/+14