All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] dhcp: fix for systemd service file
@ 2014-09-28  8:59 Chen Qi
  2014-09-28  8:59 ` [PATCH 1/1] " Chen Qi
  0 siblings, 1 reply; 5+ messages in thread
From: Chen Qi @ 2014-09-28  8:59 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit e6c6d3fcfd2faf867e8145d25c1ba197fb9ee6b5:

  build-appliance-image: Update to dizzy head revision (2014-09-23 22:10:21 +0100)

are available in the git repository at:

  git://git.openembedded.org/openembedded-core-contrib ChenQi/systemd-dhcpd
  http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=ChenQi/systemd-dhcpd

Chen Qi (1):
  dhcp: fix for systemd service file

 meta/recipes-connectivity/dhcp/files/dhcpd.service | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

-- 
1.9.1



^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/1] dhcp: fix for systemd service file
  2014-09-28  8:59 [PATCH 0/1] dhcp: fix for systemd service file Chen Qi
@ 2014-09-28  8:59 ` Chen Qi
  2014-12-17  9:38   ` ChenQi
  0 siblings, 1 reply; 5+ messages in thread
From: Chen Qi @ 2014-09-28  8:59 UTC (permalink / raw)
  To: openembedded-core

1. Set Type=forking for dhcpd.service to make it start up correctly.
2. Add PIDFile=/var/run/dhcpd.pid
3. Do not force existence of the environment file.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 meta/recipes-connectivity/dhcp/files/dhcpd.service | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-connectivity/dhcp/files/dhcpd.service b/meta/recipes-connectivity/dhcp/files/dhcpd.service
index 8648f1a..4215173 100644
--- a/meta/recipes-connectivity/dhcp/files/dhcpd.service
+++ b/meta/recipes-connectivity/dhcp/files/dhcpd.service
@@ -4,7 +4,9 @@ After=network.target
 After=time-sync.target
 
 [Service]
-EnvironmentFile=@SYSCONFDIR@/default/dhcp-server
+Type=forking
+PIDFile=/var/run/dhcpd.pid
+EnvironmentFile=-@SYSCONFDIR@/default/dhcp-server
 ExecStart=-@SBINDIR@/dhcpd -q $INTERFACES
 
 [Install]
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/1] dhcp: fix for systemd service file
  2014-09-28  8:59 ` [PATCH 1/1] " Chen Qi
@ 2014-12-17  9:38   ` ChenQi
  2014-12-17 10:21     ` Enrico Scholz
  0 siblings, 1 reply; 5+ messages in thread
From: ChenQi @ 2014-12-17  9:38 UTC (permalink / raw)
  To: openembedded-core

ping

On 09/28/2014 04:59 PM, Chen Qi wrote:
> 1. Set Type=forking for dhcpd.service to make it start up correctly.
> 2. Add PIDFile=/var/run/dhcpd.pid
> 3. Do not force existence of the environment file.
>
> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> ---
>   meta/recipes-connectivity/dhcp/files/dhcpd.service | 4 +++-
>   1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/meta/recipes-connectivity/dhcp/files/dhcpd.service b/meta/recipes-connectivity/dhcp/files/dhcpd.service
> index 8648f1a..4215173 100644
> --- a/meta/recipes-connectivity/dhcp/files/dhcpd.service
> +++ b/meta/recipes-connectivity/dhcp/files/dhcpd.service
> @@ -4,7 +4,9 @@ After=network.target
>   After=time-sync.target
>   
>   [Service]
> -EnvironmentFile=@SYSCONFDIR@/default/dhcp-server
> +Type=forking
> +PIDFile=/var/run/dhcpd.pid
> +EnvironmentFile=-@SYSCONFDIR@/default/dhcp-server
>   ExecStart=-@SBINDIR@/dhcpd -q $INTERFACES
>   
>   [Install]



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/1] dhcp: fix for systemd service file
  2014-12-17  9:38   ` ChenQi
@ 2014-12-17 10:21     ` Enrico Scholz
  2014-12-18  3:08       ` ChenQi
  0 siblings, 1 reply; 5+ messages in thread
From: Enrico Scholz @ 2014-12-17 10:21 UTC (permalink / raw)
  To: openembedded-core

ChenQi <Qi.Chen-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org> writes:

>> 1. Set Type=forking for dhcpd.service to make it start up correctly.
>> 2. Add PIDFile=/var/run/dhcpd.pid

why forking? Starting dhcpd with '-f --no-pid' should chose the more
simple non-forking variant without a clumsy.pidfile.


Enrico


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/1] dhcp: fix for systemd service file
  2014-12-17 10:21     ` Enrico Scholz
@ 2014-12-18  3:08       ` ChenQi
  0 siblings, 0 replies; 5+ messages in thread
From: ChenQi @ 2014-12-18  3:08 UTC (permalink / raw)
  To: openembedded-core

On 12/17/2014 06:21 PM, Enrico Scholz wrote:
> ChenQi <Qi.Chen-CWA4WttNNZF54TAoqtyWWQ@public.gmane.org> writes:
>
>>> 1. Set Type=forking for dhcpd.service to make it start up correctly.
>>> 2. Add PIDFile=/var/run/dhcpd.pid
> why forking? Starting dhcpd with '-f --no-pid' should chose the more
> simple non-forking variant without a clumsy.pidfile.
>
>
> Enrico

V2 sent, using '-f --no-pid'.

Regards,
Chen Qi


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-12-18  3:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-28  8:59 [PATCH 0/1] dhcp: fix for systemd service file Chen Qi
2014-09-28  8:59 ` [PATCH 1/1] " Chen Qi
2014-12-17  9:38   ` ChenQi
2014-12-17 10:21     ` Enrico Scholz
2014-12-18  3:08       ` ChenQi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.