Include systemd unit file

This commit is contained in:
Stephen Gallagher 2011-08-22 14:07:46 -04:00
parent a4a3c3269d
commit 027222403b
2 changed files with 16 additions and 1 deletions

12
dnsmasq.service Normal file
View File

@ -0,0 +1,12 @@
[Unit]
Description=DNS caching server.
After=syslog.target network.target
[Service]
Type=forking
PIDFile=/var/run/dnsmasq.pid
EnvironmentFile=/etc/sysconfig/network
ExecStart=/usr/sbin/dnsmasq -s $HOSTNAME
[Install]
WantedBy=multi-user.target

View File

@ -11,7 +11,7 @@
Name: dnsmasq Name: dnsmasq
Version: 2.52 Version: 2.52
Release: 3%{?extraversion}%{?dist} Release: 4%{?extraversion}%{?dist}
Summary: A lightweight DHCP/caching DNS server Summary: A lightweight DHCP/caching DNS server
Group: System Environment/Daemons Group: System Environment/Daemons
@ -118,6 +118,9 @@ fi
%changelog %changelog
* Mon Aug 08 2011 Patrick "Jima" Laughton <jima@fedoraproject.org> - 2.52-4
- Include systemd unit file
* Mon Aug 08 2011 Patrick "Jima" Laughton <jima@fedoraproject.org> - 2.52-3 * Mon Aug 08 2011 Patrick "Jima" Laughton <jima@fedoraproject.org> - 2.52-3
- Applied Jóhann's patch, minor cleanup - Applied Jóhann's patch, minor cleanup