summaryrefslogtreecommitdiff
path: root/kvmd/apps
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2020-10-16 23:11:11 +0300
committerDevaev Maxim <[email protected]>2020-10-16 23:11:11 +0300
commitdd279e3a13a62de9a1372e7a29d1a2a7aed9643e (patch)
treee7f744568dc8a33d9a6eb850f67683c70a6fbb4b /kvmd/apps
parentfd008fcda19cecd4734cd488404b2c37968fe436 (diff)
dnsmasq tweaks
Diffstat (limited to 'kvmd/apps')
-rw-r--r--kvmd/apps/__init__.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/kvmd/apps/__init__.py b/kvmd/apps/__init__.py
index 0318ac09..2e1cfc09 100644
--- a/kvmd/apps/__init__.py
+++ b/kvmd/apps/__init__.py
@@ -458,11 +458,16 @@ def _get_config_scheme() -> Dict:
"/usr/bin/systemd-run",
"--unit=kvmd-otgnet-dnsmasq",
"/usr/bin/dnsmasq",
+ "--conf-file=/dev/null",
+ "--pid-file",
+ "--user=dnsmasq",
"--interface={iface}",
"--port=0",
"--dhcp-range={dhcp_ip_begin},{dhcp_ip_end},24h",
"--dhcp-leasefile=/run/kvmd/dnsmasq.lease",
- "--no-daemon",
+ "--dhcp-option=3",
+ "--dhcp-option=6",
+ "--keep-in-foreground",
], type=valid_command),
"pre_stop_cmd": Option([
"/usr/bin/systemctl",