From 2e422564a20244f01f7ae40c7a7d28f43216cd31 Mon Sep 17 00:00:00 2001 From: Erik Mackdanz Date: Sat, 13 Oct 2018 17:36:11 -0500 Subject: sys-fs/lxcfs: Bump to 3.0.2 Signed-off-by: Erik Mackdanz Package-Manager: Portage-2.3.51, Repoman-2.3.11 --- .../lxcfs/files/lxcfs-3.0.2-fusermount-path.patch | 15 +++++++++++++ sys-fs/lxcfs/files/lxcfs-3.0.2.initd | 26 ++++++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 sys-fs/lxcfs/files/lxcfs-3.0.2-fusermount-path.patch create mode 100644 sys-fs/lxcfs/files/lxcfs-3.0.2.initd (limited to 'sys-fs/lxcfs/files') diff --git a/sys-fs/lxcfs/files/lxcfs-3.0.2-fusermount-path.patch b/sys-fs/lxcfs/files/lxcfs-3.0.2-fusermount-path.patch new file mode 100644 index 000000000000..99a5addf1d10 --- /dev/null +++ b/sys-fs/lxcfs/files/lxcfs-3.0.2-fusermount-path.patch @@ -0,0 +1,15 @@ +--- /config/init/systemd/lxcfs.service.orig 2018-10-13 17:24:46.534035126 -0500 ++++ /config/init/systemd/lxcfs.service 2018-10-13 17:25:33.007034294 -0500 +@@ -5,10 +5,10 @@ + Documentation=man:lxcfs(1) + + [Service] +-ExecStart=/usr/bin/lxcfs /var/lib/lxcfs/ ++ExecStart=/usr/bin/lxcfs -o allow_other,nonempty /var/lib/lxcfs/ + KillMode=process + Restart=on-failure +-ExecStopPost=-/bin/fusermount -u /var/lib/lxcfs ++ExecStopPost=-/usr/bin/fusermount -u /var/lib/lxcfs + Delegate=yes + + [Install] diff --git a/sys-fs/lxcfs/files/lxcfs-3.0.2.initd b/sys-fs/lxcfs/files/lxcfs-3.0.2.initd new file mode 100644 index 000000000000..52d8202d7ac3 --- /dev/null +++ b/sys-fs/lxcfs/files/lxcfs-3.0.2.initd @@ -0,0 +1,26 @@ +#!/sbin/openrc-run +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +DAEMON=/usr/bin/lxcfs +PIDFILE=/run/lxcfs.pid + +start() { + ebegin "Starting lxcfs" + + start-stop-daemon --start \ + --pidfile ${PIDFILE} \ + --exec ${DAEMON} \ + --background \ + --make-pidfile \ + -- \ + -o allow_other,nonempty /var/lib/lxcfs + + eend $? +} + +stop() { + ebegin "Stopping lxcfs" + start-stop-daemon --stop --quiet -R TERM/45 -p ${PIDFILE} + eend $? +} -- cgit v1.2.3-65-gdbad