From: Michael Tremer Date: Tue, 26 Feb 2019 10:18:33 +0000 (+0000) Subject: DHCP: Restart server in background X-Git-Tag: v2.23-core131~134^2~1 X-Git-Url: http://git.ipfire.org/?p=ipfire-2.x.git;a=commitdiff_plain;h=4eb23a91987a39c504e10d96d89bd1de46f9c0fe DHCP: Restart server in background This allows for the CGI to return quicker. Signed-off-by: Michael Tremer --- diff --git a/html/cgi-bin/dhcp.cgi b/html/cgi-bin/dhcp.cgi index 82c6b20665..900ea3a9c3 100644 --- a/html/cgi-bin/dhcp.cgi +++ b/html/cgi-bin/dhcp.cgi @@ -1335,7 +1335,7 @@ sub buildconf { close FILE; if ( $dhcpsettings{"ENABLE_GREEN"} eq 'on' || $dhcpsettings{"ENABLE_BLUE"} eq 'on' ) {system '/usr/local/bin/dhcpctrl enable >/dev/null 2>&1';} else {system '/usr/local/bin/dhcpctrl disable >/dev/null 2>&1';} - system '/usr/local/bin/dhcpctrl restart >/dev/null 2>&1'; + system '/usr/local/bin/dhcpctrl restart >/dev/null 2>&1 &'; } #