Bug#640095: systemd configuration fails to start dnsmasq

2011-09-07 Thread Simon Kelley
Yep, I did that already (did you see the updated service file?). Not when I wrote my last message, but I have now. It's much better, thank you. 1) Make dnsmasq capable of getting the DNS domain name on its own. It’s not too much code, I’ve ripped out the appropriate parts of

Bug#640095: systemd configuration fails to start dnsmasq

2011-09-05 Thread Michael Stapelberg
Hi Simon, Excerpts from Michael Stapelberg's message of 2011-09-02 17:15:23 +0200: Simon, what do you think? Is running dnsmasq as user dnsmasq by default a sensible decision? Yes, it is. Alright, I will change the service file to do that. So, I reflected about this, and we

Bug#640095: systemd configuration fails to start dnsmasq

2011-09-05 Thread Simon Kelley
Michael Stapelberg wrote: So, I reflected about this, and we cannot use User=dnsmasq in the service file because dnsmasq needs to bind to port 53 as root. Dnsmasq needs to be started as root, but it needs the command-line argument --user=dnsmasq, to tell it to change to user dnsmasq _after

Bug#640095: systemd configuration fails to start dnsmasq

2011-09-05 Thread Michael Stapelberg
Hi Simon, Thanks for your explanations :). My answers follow, a new service file is attached. Excerpts from Simon Kelley's message of 2011-09-05 14:39:42 +0200: Dnsmasq needs to be started as root, but it needs the command-line argument --user=dnsmasq, to tell it to change to user dnsmasq

Bug#640095: systemd configuration fails to start dnsmasq

2011-09-05 Thread Simon Kelley
Michael Stapelberg wrote: Hi Simon, Thanks for your explanations :). My answers follow, a new service file is attached. Excerpts from Simon Kelley's message of 2011-09-05 14:39:42 +0200: Dnsmasq needs to be started as root, but it needs the command-line argument --user=dnsmasq, to tell

Bug#640095: systemd configuration fails to start dnsmasq

2011-09-05 Thread Michael Stapelberg
Hi Simon, Excerpts from Simon Kelley's message of 2011-09-05 17:35:46 +0200: The bug which originally prompted the dnsmasq user is http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=338353 which may shed more light. Yep, that underlines what I wrote as a comment in the service file. My feeling

Bug#640095: systemd configuration fails to start dnsmasq

2011-09-03 Thread Sjoerd Simons
On Fri, 2011-09-02 at 16:04 +0100, Simon Kelley wrote: Michael Stapelberg wrote: Hi Sjoerd, When using systemd starting dnsmasq just hangs and times out.. Also the sysv init script seems to have a reasonable amount of functionality that the systemd one does not have, so i'm not

Bug#640095: systemd configuration fails to start dnsmasq

2011-09-03 Thread Michael Stapelberg
Hi Sjoerd, Excerpts from Sjoerd Simons's message of 2011-09-03 14:53:27 +0200: Sure attached. Looks like you're using a dbus service, while by default (afaik) dnsmasq isn't configured to connect to dbus, so it'll just wait forever and ever.. Ah, yes, indeed. Sorry, I completely missed that

Bug#640095: systemd configuration fails to start dnsmasq

2011-09-02 Thread Sjoerd Simons
Package: dnsmasq Version: 2.58-2 Severity: important When using systemd starting dnsmasq just hangs and times out.. Also the sysv init script seems to have a reasonable amount of functionality that the systemd one does not have, so i'm not sure if switching now is the right thing. -- System

Bug#640095: systemd configuration fails to start dnsmasq

2011-09-02 Thread Michael Stapelberg
Hi Sjoerd, When using systemd starting dnsmasq just hangs and times out.. Also the sysv init script seems to have a reasonable amount of functionality that the systemd one does not have, so i'm not sure if switching now is the right thing. Which version of systemd do you use? I tested the

Bug#640095: systemd configuration fails to start dnsmasq

2011-09-02 Thread Michael Stapelberg
Hi Simon, Thanks for your reply. Excerpts from Simon Kelley's message of 2011-09-02 17:04:54 +0200: • It runs dnsmasq as user 'dnsmasq' - I missed this one and we can easily add it to the service file (User=dnsmasq in the [Service] section). Simon, what do you think? Is running

Bug#640095: systemd configuration fails to start dnsmasq

2011-09-02 Thread Simon Kelley
Michael Stapelberg wrote: Hi Sjoerd, When using systemd starting dnsmasq just hangs and times out.. Also the sysv init script seems to have a reasonable amount of functionality that the systemd one does not have, so i'm not sure if switching now is the right thing. Which version of systemd