summaryrefslogtreecommitdiffstats
path: root/scripts/lvm2_lvmetad_systemd_red_hat.service.in
Commit message (Collapse)AuthorAgeFilesLines
* configure: run directory configuration cleanupPeter Rajnoha2012-06-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were several hard-coded values for run directory around the code. Also, some tools are DM specific only, others are LVM specific and there was no distinction made here before. With this patch applied, we have this cleaned up a bit (subsystem in brackets, defaults in parentheses): [common] configurable PID_DIR (/var/run) lvm [lvm] configurable RUN_DIR (/var/run/lvm) configurable locking dir (/var/lock/lvm) clvmd [lvm] configurable pid file (PID_DIR/clvmd.pid) socket (RUN_DIR/clvmd.sock) lvmetad [lvm] configurable pid file (PID_DIR/lvmetad.pid) socket (RUN_DIR/lvmetad.socket) dm [dm] configurable DM_RUN_DIR (/var/run) cmirrord [dm] configurable pid file (PID_DIR/cmirrord.pid) dmeventd [dm] configurable pid file (PID_DIR/dmeventd.pid) server fifo (DM_RUN_DIR/dmeventd-server) client fifo (DM_RUN_DIR/dmeventd-client) The changes briefly: - added configure --with-default-pid-dir - added configure --with-default-dm-run-dir - added configure --with-lvmetad-pidfile - by default, using one common pid directory for everything (only lvmetad was not following this before)
* systemd: Add Documentation referencesPeter Rajnoha2012-06-201-0/+1
| | | | These documentation references show up in "systemctl status" output.
* Use pvscan --cache instead of vgscan in lvmetad init script and systemd unit.Peter Rajnoha2012-03-161-1/+1
|
* 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.
* Add 'Restart: on-abort' for lvmetad systemd service.Peter Rajnoha2012-03-081-0/+1
| | | | | Restart lvmetad automatically if it exits due to reception of uncaught signal, leaving a track in systemd log/syslog.
* LVMetaD socket operates in non-blocking mode.Peter Rajnoha2012-02-281-0/+1
|
* Use DEFAULT_RUN_DIR instead of hardcoded value in lvmetad systemd unitsPeter Rajnoha2012-02-231-1/+2
| | | | | and add ExecStartPost=vgscan to actually run the first scan that will fill the metadata daemon with metadata information.
* Add LVMetaD systemd units.Peter Rajnoha2012-02-231-0/+15