[Dnsmasq-discuss] Problems with dnsmasq pid file

Oliver Metz Oliver.Metz at fswiwi.org
Mon Mar 9 15:47:58 GMT 2009


Hi.

We are using dnsmasq on an embedded system (router, linux 2.6.19.2, uClibc-0.9.29). There is a problem with the pid file:
# ls -al /var/run/dnsmasq.pid
-rw-r--r--    1 root     root            5 Mar  9 00:02 /var/run/dnsmasq.pid

Although we are running dnsmasq with user nobody the pid file is created as root. Perhaps you can guess what happens on TERM signal:
unlink("/var/run/dnsmasq.pid")          = -1 EACCES (Permission denied)

Do you have a solution for this?

Regards
Oliver



More information about the Dnsmasq-discuss mailing list