]> git.pld-linux.org Git - packages/pdnsd.git/commitdiff
Release 2. Restart=on-abort in service file. master auto/th/pdnsd-1.2.9a-2
authorMateusz Korniak <matkor@pld-linux.org>
Mon, 5 Oct 2015 11:20:14 +0000 (13:20 +0200)
committerMateusz Korniak <matkor@pld-linux.org>
Mon, 5 Oct 2015 11:20:14 +0000 (13:20 +0200)
pdnsd.service
pdnsd.spec

index fab48d32fdefedcbb8b749618021c63a54cefd74..03dad541658cceaa4e0b2efdc8fd7d33777c4b90 100644 (file)
@@ -6,7 +6,7 @@ After=network.target
 ExecStart=/usr/sbin/pdnsd
 
 # Restarts on abnormal termination
-Restart=on-abort
+Restart=on-abort
 
 # Config file
 # EnvironmentFile=/etc/sysconfig/pdnsd
index 03e870048d71d46148a4c9cb5464d8f4f245177c..7eac39b05fc38fd2309fdf9e869ca3e15cb846bc 100644 (file)
@@ -4,13 +4,14 @@ Summary:      A caching dns proxy for small networks or dialin accounts
 Summary(pl.UTF-8):     DNS proxy serwer dla małej sieci lub jednostki z połączeniem dialup
 Name:          pdnsd
 Version:       1.2.9a
-Release:       1
+Release:       2
 License:       GPL
 Group:         Networking/Daemons
 Source0:       http://members.home.nl/p.a.rombouts/pdnsd/releases/%{name}-%{version}-%{par}.tar.gz
 # Source0-md5: 2f3e705d59a0f9308ad9504b24400769
 Source1:       %{name}.init
 Source2:       %{name}.sysconfig
+Source3:       %{name}.service
 Patch0:                %{name}-ac_am.patch
 Patch1:                %{name}-query_roots_in_default_conf.patch
 Patch2:                %{name}-ipv6_pktinfo.patch
@@ -76,7 +77,8 @@ install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
 
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/pdnsd
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/pdnsd
-
+install -d $RPM_BUILD_ROOT/%{systemdunitdir}
+install %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}/%{name}.service
 mv -f $RPM_BUILD_ROOT%{_sysconfdir}/pdnsd.conf{.sample,}
 
 %clean
@@ -89,12 +91,14 @@ rm -rf $RPM_BUILD_ROOT
 %post
 /sbin/chkconfig --add pdnsd
 %service pdnsd restart
+%systemd_post %{name}.service
 
 %preun
 if [ "$1" = "0" ]; then
        %service pdnsd stop
        /sbin/chkconfig --del pdnsd
 fi
+%systemd_preun %{name}.service
 
 %postun
 if [ "$1" = "0" ]; then
@@ -102,10 +106,13 @@ if [ "$1" = "0" ]; then
        %groupremove pdnsd
 fi
 
+%systemd_trigger %{name}.service
+
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README TODO doc/txt/*.txt doc/html/*.html
 %attr(754,root,root) /etc/rc.d/init.d/pdnsd
+%{systemdunitdir}/%{name}.service
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/pdnsd
 %attr(755,root,root) %{_sbindir}/pdnsd
 %attr(755,root,root) %{_sbindir}/pdnsd-ctl
This page took 0.082205 seconds and 4 git commands to generate.