summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Mackdanz <stasibear@gentoo.org>2016-02-21 22:11:46 -0600
committerErik Mackdanz <stasibear@gentoo.org>2016-02-21 22:11:46 -0600
commite8a2d184834becddfafa0c2b178a18db5a3814bd (patch)
treedc3dd23d476429872d0d6d3a9113ca37ce04e1b7 /sys-fs/lxcfs/files
parentapp-misc/tmate: new 2.2.0 added (diff)
downloadgentoo-e8a2d184834becddfafa0c2b178a18db5a3814bd.tar.gz
gentoo-e8a2d184834becddfafa0c2b178a18db5a3814bd.tar.bz2
gentoo-e8a2d184834becddfafa0c2b178a18db5a3814bd.zip
sys-fs/lxcfs: bump to 2.0.0_beta2
Package-Manager: portage-2.2.27
Diffstat (limited to 'sys-fs/lxcfs/files')
-rw-r--r--sys-fs/lxcfs/files/lxcfs-2.0.0_beta2.initd27
-rw-r--r--sys-fs/lxcfs/files/lxcfs-2.0.0_beta2.service13
2 files changed, 40 insertions, 0 deletions
diff --git a/sys-fs/lxcfs/files/lxcfs-2.0.0_beta2.initd b/sys-fs/lxcfs/files/lxcfs-2.0.0_beta2.initd
new file mode 100644
index 000000000000..a85021401a7d
--- /dev/null
+++ b/sys-fs/lxcfs/files/lxcfs-2.0.0_beta2.initd
@@ -0,0 +1,27 @@
+#!/sbin/runscript
+# Copyright 1999-2015 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.0_beta2.service b/sys-fs/lxcfs/files/lxcfs-2.0.0_beta2.service
new file mode 100644
index 000000000000..ff737c7e78ce
--- /dev/null
+++ b/sys-fs/lxcfs/files/lxcfs-2.0.0_beta2.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