dnsmasq unit file cleanup

- drop forking Type and PIDfile and rather start dnsmasq with "-k" option
- drop After syslog.target as this is by default

Signed-off-by: Tomas Hozza <thozza@redhat.com>
This commit is contained in:
Tomas Hozza 2013-04-30 17:24:27 +02:00
parent c47bd50841
commit c925f9e48a
2 changed files with 8 additions and 5 deletions

View File

@ -1,11 +1,9 @@
[Unit]
Description=DNS caching server.
After=syslog.target network.target
After=network.target
[Service]
Type=forking
PIDFile=/var/run/dnsmasq.pid
ExecStart=/usr/sbin/dnsmasq
ExecStart=/usr/sbin/dnsmasq -k
[Install]
WantedBy=multi-user.target

View File

@ -11,7 +11,7 @@
Name: dnsmasq
Version: 2.66
Release: 4%{?extraversion}%{?dist}
Release: 5%{?extraversion}%{?dist}
Summary: A lightweight DHCP/caching DNS server
Group: System Environment/Daemons
@ -164,6 +164,11 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man1/dhcp_*
%changelog
* Tue Apr 30 2013 Tomas Hozza <thozza@redhat.com> - 2.66-5
- dnsmasq unit file cleanup
- drop forking Type and PIDfile and rather start dnsmasq with "-k" option
- drop After syslog.target as this is by default
* Thu Apr 25 2013 Tomas Hozza <thozza@redhat.com> - 2.66-4
- include several fixes from upstream repo:
- Send TCP DNS messages in one packet