Skip to contentSkip to conversation

dhcp: set Type=forking for dhcpd.service

PATCH In review Chen Qi 2 participants 3 messages Sep 18, 2014

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

cover dhcp: set Type=forking for dhcpd.service

The following changes since commit f6a39cc957bf85ff43513f0b76afc3b2c9c906b6:

sstatesig: fix overrides behaviour to remove SIGGEN_LOCKEDSIGS_i586 (2014-09-17 22:00:05 +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: set Type=forking for dhcpd.service

 meta/recipes-connectivity/dhcp/files/dhcpd.service | 1 +
 1 file changed, 1 insertion(+)
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH 1/1 dhcp: set Type=forking for dhcpd.service

Set Type=forking for dhcpd.service to make it start up correctly.

---
 meta/recipes-connectivity/dhcp/files/dhcpd.service | 1 +
 1 file changed, 1 insertion(+)
meta/recipes-connectivity/dhcp/files/dhcpd.service +1 -0
index 8648f1a..80f6c41 100644
@@ -4,6 +4,7 @@ After=network.target
 After=time-sync.target
 
 [Service]
+Type=forking
 EnvironmentFile=@SYSCONFDIR@/default/dhcp-server
 ExecStart=-@SBINDIR@/dhcpd -q $INTERFACES
 
Signature · 1 line
1.9.1
#2 lore raw
Quoted 12 lines · Chen Qi

Set Type=forking for dhcpd.service to make it start up correctly.

---
  meta/recipes-connectivity/dhcp/files/dhcpd.service | 1 +
  1 file changed, 1 insertion(+)
meta/recipes-connectivity/dhcp/files/dhcpd.service +0 -0
index 8648f1a..80f6c41 100644

meta/recipes-connectivity/dhcp/files/dhcpd.service After=network.target · line 7

Quoted 4 lines
meta/recipes-connectivity/dhcp/files/dhcpd.service +1 -0
@@ -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.

Quoted 4 lines
meta/recipes-connectivity/dhcp/files/dhcpd.service +0 -0
  EnvironmentFile=@SYSCONFDIR@/default/dhcp-server
  ExecStart=-@SBINDIR@/dhcpd -q $INTERFACES