summaryrefslogtreecommitdiffstats
path: root/recipes-containers/lxc/files/lxc-busybox-use-lxc.rebootsignal-SIGTERM.patch
blob: 2f4513eee775c41f8b53153c862798c951a8273a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From 22fb28a946397ec19b247efe170c15b263bf89af Mon Sep 17 00:00:00 2001
From: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Date: Mon, 16 Feb 2015 09:38:36 +0000
Subject: [PATCH 12/12] lxc-busybox: use lxc.rebootsignal = SIGTERM

Otherwise lxc-stop -r has no effect on the container.

Upstream-Status: Accepted
[https://github.com/lxc/lxc/commit/22fb28a946397ec19b247efe170c15b263bf89af]

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
---
 templates/lxc-busybox.in | 1 +
 1 file changed, 1 insertion(+)

diff --git a/templates/lxc-busybox.in b/templates/lxc-busybox.in
index 72531d6..7e05bd6 100644
--- a/templates/lxc-busybox.in
+++ b/templates/lxc-busybox.in
@@ -270,6 +270,7 @@ copy_configuration()
 grep -q "^lxc.rootfs" $path/config 2>/dev/null || echo "lxc.rootfs = $rootfs" >> $path/config
 cat <<EOF >> $path/config
 lxc.haltsignal = SIGUSR1
+lxc.rebootsignal = SIGTERM
 lxc.utsname = $name
 lxc.tty = 1
 lxc.pts = 1
-- 
2.1.4