After install the daemon runs fine in 18.04: root@b:~# systemctl status dnsmasq ● dnsmasq.service - dnsmasq - A lightweight DHCP and caching DNS server Loaded: loaded (/lib/systemd/system/dnsmasq.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2020-04-06 06:34:36 UTC; 26s ago Main PID: 25562 (dnsmasq) Tasks: 1 (limit: 38284) CGroup: /system.slice/dnsmasq.service └─25562 /usr/sbin/dnsmasq -x /run/dnsmasq/dnsmasq.pid ...
The file exists matching the ownership as you described: root@b:~# ll /run/dnsmasq/dnsmasq.pid -rw-r--r-- 1 dnsmasq nogroup 6 Apr 6 06:34 /run/dnsmasq/dnsmasq.pid The path is defined the same way in the service file: root@b:~# systemctl cat dnsmasq | grep PIDF PIDFile=/run/dnsmasq/dnsmasq.pid The file content is correct: root@b:~# cat /run/dnsmasq/dnsmasq.pid 25562 There is no complaint about the PIDFILE (or anything else): Apr 06 06:34:35 b systemd[1]: Starting dnsmasq - A lightweight DHCP and caching DNS server... Apr 06 06:34:35 b dnsmasq[25512]: dnsmasq: syntax check OK. Apr 06 06:34:36 b dnsmasq[25562]: started, version 2.79 cachesize 150 Apr 06 06:34:36 b dnsmasq[25562]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth DNSSEC loop-detect inotify Apr 06 06:34:36 b dnsmasq[25562]: reading /etc/resolv.conf Apr 06 06:34:36 b dnsmasq[25562]: using nameserver 127.0.0.53#53 Apr 06 06:34:36 b dnsmasq[25562]: read /etc/hosts - 7 addresses Apr 06 06:34:36 b systemd[1]: Started dnsmasq - A lightweight DHCP and caching DNS server. systemd properly reads it as well: root@b:~# systemctl show --property MainPID --value dnsmasq 25562 I wonder what issue you are actually looking at as I've seen none and your report has no example error. Reading between the lines - if you want to run sysV init instead of systemd as the main init system that isn't supported in modern Ubuntu releases. ** Changed in: dnsmasq (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to dnsmasq in Ubuntu. https://bugs.launchpad.net/bugs/1870980 Title: dnsmasq conf file runtime group conflicts with initd Status in dnsmasq package in Ubuntu: Incomplete Bug description: In /etc/dnsmasq.conf a runtime group of 'dnsmasq' is specified The initd start script is creating a pid file and changing its ownership to dnsmasq:nogroup This causes the pid file to not be found (though I'm not sure why since the pid file is owned by user 'dnsmasq') ProblemType: Bug DistroRelease: Ubuntu 18.04 Package: dnsmasq 2.79-1 [modified: etc/dnsmasq.conf] ProcVersionSignature: Ubuntu 5.3.0-45.37~18.04.1-generic 5.3.18 Uname: Linux 5.3.0-45-generic x86_64 ApportVersion: 2.20.9-0ubuntu7.14 Architecture: amd64 CurrentDesktop: KDE Date: Sun Apr 5 15:44:29 2020 InstallationDate: Installed on 2020-04-04 (1 days ago) InstallationMedia: Kubuntu 18.04.4 LTS "Bionic Beaver" - Release amd64 (20200203.1) PackageArchitecture: all ProcEnviron: PATH=(custom, no user) XDG_RUNTIME_DIR=<set> LANG=en_US.UTF-8 SHELL=/bin/bash SourcePackage: dnsmasq UpgradeStatus: No upgrade log present (probably fresh install) modified.conffile..etc.dnsmasq.conf: [modified] mtime.conffile..etc.dnsmasq.conf: 2020-04-05T11:13:49.503651 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/1870980/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp