* [PATCH 0/1] dhcp: enable gentle shutdown
@ 2015-11-24 5:21 Chen Qi
2015-11-24 5:21 ` [PATCH 1/1] " Chen Qi
0 siblings, 1 reply; 4+ messages in thread
From: Chen Qi @ 2015-11-24 5:21 UTC (permalink / raw)
To: openembedded-core
The following changes since commit 6f98c39418c60b7c0b25b30983d2e5257158a6a4:
gcc: Drop 4.8 (2015-11-16 14:59:07 +0000)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib ChenQi/dhcp-gentle-shutdown
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=ChenQi/dhcp-gentle-shutdown
Chen Qi (1):
dhcp: enable gentle shutdown
.../dhcp/0001-site.h-enable-gentle-shutdown.patch | 25 ++++++++++++++++++++++
meta/recipes-connectivity/dhcp/dhcp_4.3.2.bb | 1 +
2 files changed, 26 insertions(+)
create mode 100644 meta/recipes-connectivity/dhcp/dhcp/0001-site.h-enable-gentle-shutdown.patch
--
1.9.1
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/1] dhcp: enable gentle shutdown
2015-11-24 5:21 [PATCH 0/1] dhcp: enable gentle shutdown Chen Qi
@ 2015-11-24 5:21 ` Chen Qi
2015-11-24 5:30 ` Rongqing Li
0 siblings, 1 reply; 4+ messages in thread
From: Chen Qi @ 2015-11-24 5:21 UTC (permalink / raw)
To: openembedded-core
For now, `systemctl stop dhcpd' cannot stop dhcpd correctly, the SIGTERM
signal would time out, causing a SIGKILL signal sent to dhcpd.
Patch site.h to enable gentle shutdown to so that dhcpd could be stopped
by SIGTERM.
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
.../dhcp/0001-site.h-enable-gentle-shutdown.patch | 25 ++++++++++++++++++++++
meta/recipes-connectivity/dhcp/dhcp_4.3.2.bb | 1 +
2 files changed, 26 insertions(+)
create mode 100644 meta/recipes-connectivity/dhcp/dhcp/0001-site.h-enable-gentle-shutdown.patch
diff --git a/meta/recipes-connectivity/dhcp/dhcp/0001-site.h-enable-gentle-shutdown.patch b/meta/recipes-connectivity/dhcp/dhcp/0001-site.h-enable-gentle-shutdown.patch
new file mode 100644
index 0000000..4344212
--- /dev/null
+++ b/meta/recipes-connectivity/dhcp/dhcp/0001-site.h-enable-gentle-shutdown.patch
@@ -0,0 +1,25 @@
+Upstream-Status: Inappropriate [configuration]
+
+Subject: [PATCH] site.h: enable gentle shutdown
+
+Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
+---
+ includes/site.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/includes/site.h b/includes/site.h
+index 73fa4e8..9c33de3 100644
+--- a/includes/site.h
++++ b/includes/site.h
+@@ -280,7 +280,7 @@
+ situations. We plan to revisit this feature and may
+ make non-backwards compatible changes including the
+ removal of this define. Use at your own risk. */
+-/* #define ENABLE_GENTLE_SHUTDOWN */
++#define ENABLE_GENTLE_SHUTDOWN
+
+ /* Include old error codes. This is provided in case you
+ are building an external program similar to omshell for
+--
+1.9.1
+
diff --git a/meta/recipes-connectivity/dhcp/dhcp_4.3.2.bb b/meta/recipes-connectivity/dhcp/dhcp_4.3.2.bb
index b4a05fc..60ca4e3 100644
--- a/meta/recipes-connectivity/dhcp/dhcp_4.3.2.bb
+++ b/meta/recipes-connectivity/dhcp/dhcp_4.3.2.bb
@@ -6,6 +6,7 @@ SRC_URI += "file://dhcp-3.0.3-dhclient-dbus.patch;striplevel=0 \
file://fixsepbuild.patch \
file://dhclient-script-drop-resolv.conf.dhclient.patch \
file://replace-ifconfig-route.patch \
+ file://0001-site.h-enable-gentle-shutdown.patch \
"
SRC_URI[md5sum] = "5a284875dd2c12ddd388416d69156a67"
--
1.9.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] dhcp: enable gentle shutdown
2015-11-24 5:21 ` [PATCH 1/1] " Chen Qi
@ 2015-11-24 5:30 ` Rongqing Li
2015-11-24 6:06 ` ChenQi
0 siblings, 1 reply; 4+ messages in thread
From: Rongqing Li @ 2015-11-24 5:30 UTC (permalink / raw)
To: Chen Qi, openembedded-core
On 2015年11月24日 13:21, Chen Qi wrote:
> For now, `systemctl stop dhcpd' cannot stop dhcpd correctly, the SIGTERM
> signal would time out, causing a SIGKILL signal sent to dhcpd.
>
> Patch site.h to enable gentle shutdown to so that dhcpd could be stopped
> by SIGTERM.
>
> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> ---
> .../dhcp/0001-site.h-enable-gentle-shutdown.patch | 25 ++++++++++++++++++++++
> meta/recipes-connectivity/dhcp/dhcp_4.3.2.bb | 1 +
> 2 files changed, 26 insertions(+)
> create mode 100644 meta/recipes-connectivity/dhcp/dhcp/0001-site.h-enable-gentle-shutdown.patch
>
> diff --git a/meta/recipes-connectivity/dhcp/dhcp/0001-site.h-enable-gentle-shutdown.patch b/meta/recipes-connectivity/dhcp/dhcp/0001-site.h-enable-gentle-shutdown.patch
> new file mode 100644
> index 0000000..4344212
> --- /dev/null
> +++ b/meta/recipes-connectivity/dhcp/dhcp/0001-site.h-enable-gentle-shutdown.patch
> @@ -0,0 +1,25 @@
> +Upstream-Status: Inappropriate [configuration]
> +
> +Subject: [PATCH] site.h: enable gentle shutdown
> +
> +Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> +---
> + includes/site.h | 2 +-
> + 1 file changed, 1 insertion(+), 1 deletion(-)
> +
> +diff --git a/includes/site.h b/includes/site.h
> +index 73fa4e8..9c33de3 100644
> +--- a/includes/site.h
> ++++ b/includes/site.h
> +@@ -280,7 +280,7 @@
> + situations. We plan to revisit this feature and may
> + make non-backwards compatible changes including the
> + removal of this define. Use at your own risk. */
> +-/* #define ENABLE_GENTLE_SHUTDOWN */
> ++#define ENABLE_GENTLE_SHUTDOWN
how about to pass the macro in TARGET_CFLAGS
TARGET_CFLAGS += "-DENABLE_GENTLE_SHUTDOWN"
-Roy
> +
> + /* Include old error codes. This is provided in case you
> + are building an external program similar to omshell for
> +--
> +1.9.1
> +
> diff --git a/meta/recipes-connectivity/dhcp/dhcp_4.3.2.bb b/meta/recipes-connectivity/dhcp/dhcp_4.3.2.bb
> index b4a05fc..60ca4e3 100644
> --- a/meta/recipes-connectivity/dhcp/dhcp_4.3.2.bb
> +++ b/meta/recipes-connectivity/dhcp/dhcp_4.3.2.bb
> @@ -6,6 +6,7 @@ SRC_URI += "file://dhcp-3.0.3-dhclient-dbus.patch;striplevel=0 \
> file://fixsepbuild.patch \
> file://dhclient-script-drop-resolv.conf.dhclient.patch \
> file://replace-ifconfig-route.patch \
> + file://0001-site.h-enable-gentle-shutdown.patch \
> "
>
> SRC_URI[md5sum] = "5a284875dd2c12ddd388416d69156a67"
>
--
Best Reagrds,
Roy | RongQing Li
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] dhcp: enable gentle shutdown
2015-11-24 5:30 ` Rongqing Li
@ 2015-11-24 6:06 ` ChenQi
0 siblings, 0 replies; 4+ messages in thread
From: ChenQi @ 2015-11-24 6:06 UTC (permalink / raw)
To: Rongqing Li, openembedded-core
On 11/24/2015 01:30 PM, Rongqing Li wrote:
>
>
> On 2015年11月24日 13:21, Chen Qi wrote:
>> For now, `systemctl stop dhcpd' cannot stop dhcpd correctly, the SIGTERM
>> signal would time out, causing a SIGKILL signal sent to dhcpd.
>>
>> Patch site.h to enable gentle shutdown to so that dhcpd could be stopped
>> by SIGTERM.
>>
>> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
>> ---
>> .../dhcp/0001-site.h-enable-gentle-shutdown.patch | 25
>> ++++++++++++++++++++++
>> meta/recipes-connectivity/dhcp/dhcp_4.3.2.bb | 1 +
>> 2 files changed, 26 insertions(+)
>> create mode 100644
>> meta/recipes-connectivity/dhcp/dhcp/0001-site.h-enable-gentle-shutdown.patch
>>
>> diff --git
>> a/meta/recipes-connectivity/dhcp/dhcp/0001-site.h-enable-gentle-shutdown.patch
>> b/meta/recipes-connectivity/dhcp/dhcp/0001-site.h-enable-gentle-shutdown.patch
>>
>> new file mode 100644
>> index 0000000..4344212
>> --- /dev/null
>> +++
>> b/meta/recipes-connectivity/dhcp/dhcp/0001-site.h-enable-gentle-shutdown.patch
>> @@ -0,0 +1,25 @@
>> +Upstream-Status: Inappropriate [configuration]
>> +
>> +Subject: [PATCH] site.h: enable gentle shutdown
>> +
>> +Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
>> +---
>> + includes/site.h | 2 +-
>> + 1 file changed, 1 insertion(+), 1 deletion(-)
>> +
>> +diff --git a/includes/site.h b/includes/site.h
>> +index 73fa4e8..9c33de3 100644
>> +--- a/includes/site.h
>> ++++ b/includes/site.h
>> +@@ -280,7 +280,7 @@
>> + situations. We plan to revisit this feature and may
>> + make non-backwards compatible changes including the
>> + removal of this define. Use at your own risk. */
>> +-/* #define ENABLE_GENTLE_SHUTDOWN */
>> ++#define ENABLE_GENTLE_SHUTDOWN
>
> how about to pass the macro in TARGET_CFLAGS
>
> TARGET_CFLAGS += "-DENABLE_GENTLE_SHUTDOWN"
>
>
> -Roy
>
site.h file starts with the following statements:
"""
/* Site-specific definitions.
For supported systems, you shouldn't need to make any changes here.
However, you may want to, in order to deal with site-specific
differences. */
"""
And there's already a patch in dhcp to modify site.h for our specific
configuration.
define-macro-_PATH_DHCPD_CONF-and-_PATH_DHCLIENT_CON.patch
So I think we need to keep the configuration in site.h.
Regards,
Chen Qi
>> +
>> + /* Include old error codes. This is provided in case you
>> + are building an external program similar to omshell for
>> +--
>> +1.9.1
>> +
>> diff --git a/meta/recipes-connectivity/dhcp/dhcp_4.3.2.bb
>> b/meta/recipes-connectivity/dhcp/dhcp_4.3.2.bb
>> index b4a05fc..60ca4e3 100644
>> --- a/meta/recipes-connectivity/dhcp/dhcp_4.3.2.bb
>> +++ b/meta/recipes-connectivity/dhcp/dhcp_4.3.2.bb
>> @@ -6,6 +6,7 @@ SRC_URI +=
>> "file://dhcp-3.0.3-dhclient-dbus.patch;striplevel=0 \
>> file://fixsepbuild.patch \
>> file://dhclient-script-drop-resolv.conf.dhclient.patch \
>> file://replace-ifconfig-route.patch \
>> + file://0001-site.h-enable-gentle-shutdown.patch \
>> "
>>
>> SRC_URI[md5sum] = "5a284875dd2c12ddd388416d69156a67"
>>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-11-24 6:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-24 5:21 [PATCH 0/1] dhcp: enable gentle shutdown Chen Qi
2015-11-24 5:21 ` [PATCH 1/1] " Chen Qi
2015-11-24 5:30 ` Rongqing Li
2015-11-24 6:06 ` ChenQi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox