[lxc-devel] [lxcfs/master] add cgroupfs-mount to Should-Start/Stop sysvinit LSB headers

evgeni on Github lxc-bot at linuxcontainers.org
Thu Jun 22 06:23:28 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 536 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20170622/b42e5ddf/attachment.bin>
-------------- next part --------------
From 67b8232d637a867e3b928f7344814e7666b98c22 Mon Sep 17 00:00:00 2001
From: Evgeni Golov <evgeni at debian.org>
Date: Thu, 22 Jun 2017 08:22:07 +0200
Subject: [PATCH] add cgroupfs-mount to Should-Start/Stop sysvinit LSB headers

otherwise init might try to start lxcfs before cgroupfs was mounted,
which will result in an empty /var/lib/lxcfs/cgroup and weird issues.

Debian-Bug: https://bugs.debian.org/859219
Signed-off-by: Evgeni Golov <evgeni at debian.org>
---
 config/init/sysvinit/lxcfs | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/config/init/sysvinit/lxcfs b/config/init/sysvinit/lxcfs
index 21a9c61..bdbcb34 100755
--- a/config/init/sysvinit/lxcfs
+++ b/config/init/sysvinit/lxcfs
@@ -6,6 +6,8 @@
 # Provides:             lxcfs
 # Required-Start:       $remote_fs
 # Required-Stop:        $remote_fs
+# Should-Start:         cgroupfs-mount
+# Should-Stop:          cgroupfs-mount
 # Default-Start:        2 3 4 5
 # Default-Stop:         0 1 6
 ### END INIT INFO


More information about the lxc-devel mailing list