[arch-commits] Commit in lxcfs/trunk (PKGBUILD lxcfs.service)

Sergej Pupykin spupykin at archlinux.org
Tue Jun 23 14:30:34 UTC 2015


    Date: Tuesday, June 23, 2015 @ 16:30:33
  Author: spupykin
Revision: 135759

upgpkg: lxcfs 0.9-2

upd

Added:
  lxcfs/trunk/lxcfs.service
Modified:
  lxcfs/trunk/PKGBUILD

---------------+
 PKGBUILD      |    9 ++++++---
 lxcfs.service |   15 +++++++++++++++
 2 files changed, 21 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-06-23 14:27:37 UTC (rev 135758)
+++ PKGBUILD	2015-06-23 14:30:33 UTC (rev 135759)
@@ -4,7 +4,7 @@
 
 pkgname=lxcfs
 pkgver=0.9
-pkgrel=1
+pkgrel=2
 pkgdesc="FUSE filesystem for LXC"
 arch=(i686 x86_64)
 url="https://linuxcontainers.org/"
@@ -11,8 +11,10 @@
 license=('GPL')
 depends=('lxc' 'cgmanager>=0.35-1' 'libnih' 'fuse')
 makedepends=('help2man')
-source=("https://linuxcontainers.org/downloads/lxcfs/lxcfs-$pkgver.tar.gz")
-md5sums=('455999f60080322852264cfb7d6b11b7')
+source=("https://linuxcontainers.org/downloads/lxcfs/lxcfs-$pkgver.tar.gz"
+	"lxcfs.service")
+md5sums=('455999f60080322852264cfb7d6b11b7'
+         '29a6bf8868ce09871e6447db4070a923')
 
 build() {
     cd "$srcdir/$pkgname-$pkgver"
@@ -26,4 +28,5 @@
 package() {
     cd "$srcdir/$pkgname-$pkgver"
     make DESTDIR="$pkgdir/" install
+    install -Dm0644 $srcdir/lxcfs.service $pkgdir/usr/lib/systemd/system/lxcfs.service
 }

Added: lxcfs.service
===================================================================
--- lxcfs.service	                        (rev 0)
+++ lxcfs.service	2015-06-23 14:30:33 UTC (rev 135759)
@@ -0,0 +1,15 @@
+[Unit]
+Description=FUSE filesystem for LXC
+ConditionVirtualization=!container
+Before=lxc.service
+After=cgmanager.service
+Requires=cgmanager.service
+
+[Service]
+ExecStart=/usr/bin/lxcfs -f -s -o allow_other /var/lib/lxcfs
+KillMode=process
+Restart=on-failure
+ExecStopPost=-/bin/fusermount -u /var/lib/lxcfs
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list