[Lunar-commits] <moonbase-core> lvm2: Final systemd related changes

Stefan Wold ratler at lunar-linux.org
Tue Jul 10 12:58:14 CEST 2012


commit 252b29161a7db7b1b75877db34ecad25da31f586
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Tue, 10 Jul 2012 03:58:14 -0700
URL: https://github.com/lunar-linux/moonbase-core/commit/252b29161a7db7b1b75877db34ecad25da31f586

lvm2: Final systemd related changes
---
  filesys/lvm2/BUILD                                           +2/-2     
  filesys/lvm2/BUILD.x86_64                                    +2/-2     
  filesys/lvm2/systemd.d/dm-event.service                      +17/-0    
  filesys/lvm2/systemd.d/dm-event.socket                       +11/-0    
  filesys/lvm2/tmpfiles.d/lvm2.conf                            +2/-0     
  5 files changed, 34 insertions (+), 4 deletions (-)

--- a/filesys/lvm2/BUILD
+++ b/filesys/lvm2/BUILD
@@ -21,9 +21,9 @@
                --enable-applib                \
                --enable-udev_sync             \
                --enable-udev_rules            \
-               --enable-static_link           \
                $OPTS                         &&
 
-  default_make
+  default_make &&
+  make install_system_dirs
 
 ) > $C_FIFO 2>&1
--- a/filesys/lvm2/BUILD.x86_64
+++ b/filesys/lvm2/BUILD.x86_64
@@ -17,9 +17,9 @@
                --enable-applib                \
                --enable-udev_sync             \
                --enable-udev_rules            \
-               --enable-static_link           \
                $OPTS                         &&
 
-  default_make
+  default_make &&
+  make install_system_dirs
 
 ) > $C_FIFO 2>&1
--- /dev/null
+++ b/filesys/lvm2/systemd.d/dm-event.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=Device-mapper event daemon
+Requires=dm-event.socket
+After=dm-event.socket
+Before=local-fs.target
+DefaultDependencies=no
+
+[Service]
+Type=forking
+ExecStart=/sbin/dmeventd
+ExecReload=/sbin/dmeventd -R
+Environment=SD_ACTIVATION=1
+PIDFile=/var/run/dmeventd.pid
+OOMScoreAdjust=-1000
+
+[Install]
+WantedBy=sysinit.target
--- /dev/null
+++ b/filesys/lvm2/systemd.d/dm-event.socket
@@ -0,0 +1,11 @@
+[Unit]
+Description=Device-mapper event daemon FIFOs
+DefaultDependencies=no
+
+[Socket]
+ListenFIFO=/var/run/dmeventd-server
+ListenFIFO=/var/run/dmeventd-client
+SocketMode=0600
+
+[Install]
+WantedBy=sockets.target
--- /dev/null
+++ b/filesys/lvm2/tmpfiles.d/lvm2.conf
@@ -0,0 +1,2 @@
+d /var/lock/lvm 0700 root root -
+d /var/run/lvm 0700 root root -




More information about the Lunar-commits mailing list