diff options
author | Erik Mackdanz <stasibear@gentoo.org> | 2016-07-10 21:39:06 -0500 |
---|---|---|
committer | Erik Mackdanz <stasibear@gentoo.org> | 2016-07-10 21:39:06 -0500 |
commit | 51b92272875fc9faff130e242c421874a089e011 (patch) | |
tree | 76c740684815f7fa31bcc1b46b82867308f0a380 /sys-fs/lxcfs/files | |
parent | dev-lang/php: new edit/revision to hide some elog messages when possible. (diff) | |
download | gentoo-51b92272875fc9faff130e242c421874a089e011.tar.gz gentoo-51b92272875fc9faff130e242c421874a089e011.tar.bz2 gentoo-51b92272875fc9faff130e242c421874a089e011.zip |
sys-fs/lxcfs: Bump to 2.0.2
Adds pam use flag, uses (patched) upstream systemd service file not our own
Package-Manager: portage-2.3.0
Diffstat (limited to 'sys-fs/lxcfs/files')
-rw-r--r-- | sys-fs/lxcfs/files/lxcfs-2.0.2-fusermount-path.patch | 11 | ||||
-rw-r--r-- | sys-fs/lxcfs/files/lxcfs-2.0.2.initd | 27 |
2 files changed, 38 insertions, 0 deletions
diff --git a/sys-fs/lxcfs/files/lxcfs-2.0.2-fusermount-path.patch b/sys-fs/lxcfs/files/lxcfs-2.0.2-fusermount-path.patch new file mode 100644 index 000000000000..ab25fa873472 --- /dev/null +++ b/sys-fs/lxcfs/files/lxcfs-2.0.2-fusermount-path.patch @@ -0,0 +1,11 @@ +--- config/init/systemd/lxcfs.service.orig 2016-07-11 01:18:57.688074437 +0000 ++++ config/init/systemd/lxcfs.service 2016-07-11 01:19:48.516477185 +0000 +@@ -7,7 +7,7 @@ + ExecStart=/usr/bin/lxcfs /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-2.0.2.initd b/sys-fs/lxcfs/files/lxcfs-2.0.2.initd new file mode 100644 index 000000000000..7436eeed39a5 --- /dev/null +++ b/sys-fs/lxcfs/files/lxcfs-2.0.2.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 $? +} |