Summary: | net-dns/dnsmasq - systemd unit file improvement | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Mehmet Giritli <mehmet> |
Component: | [OLD] Server | Assignee: | Patrick McLean <chutzpah> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | martin, randy, systemd |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=371871 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Mehmet Giritli
2013-08-07 11:15:27 UTC
I have no idea about systemd, CCing the systemd herd. What do you guys think? If you agree please attach the new unit file and I will include it next time I do a version bump (there should be a new version coming out soon). (In reply to Mehmet Giritli from comment #0) > I'd like to suggest addition of the following lines to the dnsmasq.service > file: > > First, I suggest adding > > After=network.target > > in [Unit]. Otherwise I was having dnsmasq boot startup problems with > interfaces no being ready yet. Your are true, the line would be: After=network.target Just after "Description" line and under "Unit" part > > Secondly, I'd suggest adding user and group info for the process to run: > > ExecStart=/usr/sbin/dnsmasq -k --user=dnsmasq --group=dnsmasq > > Note that this is already the "old" behaviour with openrc init file. > > Reproducible: Always I don't know how is this being done downstream on gentoo -> in other distributions they don't specify the user and group but, if we are needing that, no problem with changing ExecStart in that way Done in net-dns/dnsmasq-2.68 There are two issues with this fix: 1. I think the correct target for current systemd should be After=network-online.target (at least, I still had the same problems with After=network.target). 2. Why is in $FILESDIR the same file twice with only a different name? Should I reopen or file a new bug? |