From de05ed5949dc4872b642407719d1336e6367d282 Mon Sep 17 00:00:00 2001 From: Erik Mackdanz Date: Fri, 8 Jan 2016 21:27:06 -0600 Subject: sys-fs/lxcfs: bump to 0.16 Package-Manager: portage-2.2.26 --- sys-fs/lxcfs/files/lxcfs-0.16.initd | 27 +++++++++++++++++++++++++++ sys-fs/lxcfs/files/lxcfs-0.16.service | 13 +++++++++++++ 2 files changed, 40 insertions(+) create mode 100755 sys-fs/lxcfs/files/lxcfs-0.16.initd create mode 100644 sys-fs/lxcfs/files/lxcfs-0.16.service (limited to 'sys-fs/lxcfs/files') diff --git a/sys-fs/lxcfs/files/lxcfs-0.16.initd b/sys-fs/lxcfs/files/lxcfs-0.16.initd new file mode 100755 index 000000000000..a85021401a7d --- /dev/null +++ b/sys-fs/lxcfs/files/lxcfs-0.16.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-0.16.service b/sys-fs/lxcfs/files/lxcfs-0.16.service new file mode 100644 index 000000000000..ff737c7e78ce --- /dev/null +++ b/sys-fs/lxcfs/files/lxcfs-0.16.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 -- cgit v1.2.3-65-gdbad