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. 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 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?