Permalink
Browse files

lvm2: Final systemd related changes

  • Loading branch information...
1 parent 2ed1aef commit 252b29161a7db7b1b75877db34ecad25da31f586 @Ratler Ratler committed Jul 10, 2012
View
4 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
View
4 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
View
17 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
View
11 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
View
2 filesys/lvm2/tmpfiles.d/lvm2.conf
@@ -0,0 +1,2 @@
+d /var/lock/lvm 0700 root root -
+d /var/run/lvm 0700 root root -

0 comments on commit 252b291

Please sign in to comment.