diff options
author | Erik Mackdanz <stasibear@gentoo.org> | 2015-11-21 12:30:37 -0600 |
---|---|---|
committer | Erik Mackdanz <stasibear@gentoo.org> | 2015-11-21 12:30:37 -0600 |
commit | 182814dcb1d2f6e745a6d9715e5f957f8cbe5186 (patch) | |
tree | d3368b9602eee9cba3c9646b70041375bd3d1720 /sys-fs/lxcfs/files | |
parent | sys-boot/refind: version bump bug #566056 add sveyret to maintainers. By svey... (diff) | |
download | gentoo-182814dcb1d2f6e745a6d9715e5f957f8cbe5186.tar.gz gentoo-182814dcb1d2f6e745a6d9715e5f957f8cbe5186.tar.bz2 gentoo-182814dcb1d2f6e745a6d9715e5f957f8cbe5186.zip |
sys-fs/lxcfs: New package 0.12
Package-Manager: portage-2.2.24
Diffstat (limited to 'sys-fs/lxcfs/files')
-rwxr-xr-x | sys-fs/lxcfs/files/lxcfs-0.12.initd | 27 | ||||
-rw-r--r-- | sys-fs/lxcfs/files/lxcfs-0.12.service | 13 |
2 files changed, 40 insertions, 0 deletions
diff --git a/sys-fs/lxcfs/files/lxcfs-0.12.initd b/sys-fs/lxcfs/files/lxcfs-0.12.initd new file mode 100755 index 000000000000..a85021401a7d --- /dev/null +++ b/sys-fs/lxcfs/files/lxcfs-0.12.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.12.service b/sys-fs/lxcfs/files/lxcfs-0.12.service new file mode 100644 index 000000000000..ff737c7e78ce --- /dev/null +++ b/sys-fs/lxcfs/files/lxcfs-0.12.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 |