On Tue, Feb 10, 2015 at 09:40:37AM +0000, Simon McVittie wrote:
> On Sun, 19 Oct 2014 at 13:15:03 +0200, Julian Andres Klode wrote:
> > When using dnsmasq in a systemd-based system, reboot gets delayed a lot. The
> > log indicates that systemd starts /etc/init.d/dnsmasq 
> > systemd-stop-resolvconf
> > as second 28 and dnsmasq only exits at second 38, thus causing a 
> > considerable
> > slow-down of the machine. During that time, the machine appears to hang.
> 
> I couldn't reproduce this while testing the patch I sent to
> https://bugs.debian.org/776530 (either with or without dbus) so I suspect
> that either that patch fixes the slow shutdown, or something has
> changed in systemd since you reported this bug.
> 
> Do you have dbus installed?

Of course I have, I'm not living under a rock.

> 
> > Your systemd unit should not use the init script either, BTW.
> 
> Perhaps not, but during freeze is not the time to change that.
> 
> If it is desirable for the systemd unit to support the various
> options that can appear in /etc/default/dnsmasq (particularly the
> deprecated ones like MAILHOSTNAME) then I don't think that
> can be done without a shell script wrapper of some sort, due to
> the options' syntax; perhaps for Debian 9 it would be cleaner to have
> a separate shell script wrapper for the systemd side, but it
> would have to duplicate parts of the init script.
> 

AFAICT, it uses the standard syntax that is natively supported
by systemd's EnvironmentFile option. See systemd.exec(7) for 
details. Not sure if that is useful. You can read the file using
systemd and then use the environment variables in your command
to be executed.

-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.

Be friendly, do not top-post, and follow RFC 1855 "Netiquette".
    - If you don't I might ignore you.


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to