[Dnsmasq-discuss] SIGUSR2 creates lease file, despite use of --leasefile-ro

Tom Metro tmetro+dnsmasq at gmail.com
Wed Jun 27 06:13:16 BST 2012

On a Tomato USB router, which I believe runs Dnsmasq (v2.55) with the
--leasefile-ro option, which is documented as:

  Completely suppress use of the lease database file. The file will not
  be created, read, or written.

If you run:

# cat /var/tmp/dhcp/leases
cat: can't open '/var/tmp/dhcp/leases': No such file or directory
# killall -SIGUSR2 dnsmasq
# cat /var/tmp/dhcp/leases

So the file is empty, but does exist after receiving SIGUSR2 signal. Bug?

(This came up in the content of this discussion thread:
http://tomatousb.org/forum/t-512884 )


Tom Metro
Venture Logic, Newton, MA, USA
"Enterprise solutions through open source."
Professional Profile: http://tmetro.venturelogic.com/

More information about the Dnsmasq-discuss mailing list