[OE-core] [PATCH 1/1] dhcp: set Type=forking for dhcpd.service

Randy Witt randy.e.witt at linux.intel.com
Thu Sep 18 16:00:53 UTC 2014


On 09/17/2014 10:50 PM, Chen Qi wrote:
> Set Type=forking for dhcpd.service to make it start up correctly.
>
> Signed-off-by: Chen Qi <Qi.Chen at windriver.com>
> ---
>   meta/recipes-connectivity/dhcp/files/dhcpd.service | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/meta/recipes-connectivity/dhcp/files/dhcpd.service b/meta/recipes-connectivity/dhcp/files/dhcpd.service
> index 8648f1a..80f6c41 100644
> --- a/meta/recipes-connectivity/dhcp/files/dhcpd.service
> +++ b/meta/recipes-connectivity/dhcp/files/dhcpd.service
> @@ -4,6 +4,7 @@ After=network.target
>   After=time-sync.target
>
>   [Service]
> +Type=forking

Is it possible to set "PIDFile=" as well? There can be some weird 
behaviour if systemd loses track of the child process.

>   EnvironmentFile=@SYSCONFDIR@/default/dhcp-server
>   ExecStart=- at SBINDIR@/dhcpd -q $INTERFACES
>
>




More information about the Openembedded-core mailing list