summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Mackdanz <stasibear@gentoo.org>2016-06-13 10:18:52 -0500
committerErik Mackdanz <stasibear@gentoo.org>2016-06-13 10:18:52 -0500
commit917e22906ca9bd831f26b2f3fc1b65ab71601873 (patch)
tree0e2b79363af493007fb35902f67a1759c0886ad1 /sys-fs/lxcfs/files
parentmail-client/thunderbird-bin: version bump to 45.1.1 (diff)
downloadgentoo-917e22906ca9bd831f26b2f3fc1b65ab71601873.tar.gz
gentoo-917e22906ca9bd831f26b2f3fc1b65ab71601873.tar.bz2
gentoo-917e22906ca9bd831f26b2f3fc1b65ab71601873.zip
sys-fs/lxcfs: bump to 2.0.1
Package-Manager: portage-2.3.0_rc1
Diffstat (limited to 'sys-fs/lxcfs/files')
-rw-r--r--sys-fs/lxcfs/files/lxcfs-2.0.1.initd27
-rw-r--r--sys-fs/lxcfs/files/lxcfs-2.0.1.service13
2 files changed, 40 insertions, 0 deletions
diff --git a/sys-fs/lxcfs/files/lxcfs-2.0.1.initd b/sys-fs/lxcfs/files/lxcfs-2.0.1.initd
new file mode 100644
index 000000000000..7436eeed39a5
--- /dev/null
+++ b/sys-fs/lxcfs/files/lxcfs-2.0.1.initd
@@ -0,0 +1,27 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DAEMON=/usr/bin/lxcfs
+PIDFILE=/run/lxcfs.pid
+
+start() {
+ ebegin "Starting lxcfs"
+
+ start-stop-daemon --start \
+ --pidfile ${PIDFILE} \
+ --exec ${DAEMON} \
+ --background \
+ --make-pidfile \
+ -- \
+ -f -o allow_other /var/lib/lxcfs
+
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping lxcfs"
+ start-stop-daemon --stop --quiet -R TERM/45 -p ${PIDFILE}
+ eend $?
+}
diff --git a/sys-fs/lxcfs/files/lxcfs-2.0.1.service b/sys-fs/lxcfs/files/lxcfs-2.0.1.service
new file mode 100644
index 000000000000..ff737c7e78ce
--- /dev/null
+++ b/sys-fs/lxcfs/files/lxcfs-2.0.1.service
@@ -0,0 +1,13 @@
+[Unit]
+Description=FUSE filesystem for LXC
+ConditionVirtualization=!container
+Before=lxc.service
+
+[Service]
+ExecStart=/usr/bin/lxcfs -f -o allow_other /var/lib/lxcfs
+KillMode=none
+Restart=on-failure
+ExecStop=/usr/bin/fusermount -u /var/lib/lxcfs
+
+[Install]
+WantedBy=multi-user.target