]> git.pld-linux.org Git - packages/irqbalance.git/commitdiff
- rel.4 - systemd support auto/th/irqbalance-0_55-4
authorPaweł Gołaszewski <blues@pld-linux.org>
Sun, 5 Feb 2012 23:17:16 +0000 (23:17 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    irqbalance.service -> 1.1
    irqbalance.spec -> 1.27
    irqbalance.sysconfig -> 1.1

irqbalance.service [new file with mode: 0644]
irqbalance.spec
irqbalance.sysconfig [new file with mode: 0644]

diff --git a/irqbalance.service b/irqbalance.service
new file mode 100644 (file)
index 0000000..8f575f1
--- /dev/null
@@ -0,0 +1,12 @@
+[Unit]
+Description=Balancing of IRQs between multiple CPUs
+After=syslog.target auditd.service sssd.service ypbind.service
+
+[Service]
+EnvironmentFile=/etc/sysconfig/irqbalance                                                                                                                                
+ExecStart=/usr/sbin/irqbalance ${IRQBALANCE_OPT}
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target
+
index 2e6e1d32243f50c8ae6e1af5dc2d6710269fefa0..f5a8ab342ae558fb63456a04522daad43500c620 100644 (file)
@@ -2,12 +2,14 @@ Summary:      Balancing of IRQs between multiple CPUs
 Summary(pl.UTF-8):     Rozdzielanie IRQ pomiędzy wiele procesorów
 Name:          irqbalance
 Version:       0.55
-Release:       3
+Release:       4
 License:       GPL
 Group:         Daemons
 Source0:       http://www.irqbalance.org/releases/%{name}-%{version}.tar.gz
 # Source0-md5: 9f6b314ff1fdc14173abeb40592d4edf
 Source1:       %{name}.init
+Source2:       %{name}.sysconfig
+Source3:       %{name}.service
 Patch0:                %{name}-opt.patch
 Patch1:                %{name}-pie.patch
 Patch2:                %{name}-cputree-parse.patch
@@ -44,10 +46,13 @@ w celu zwiększenia wydajności systemu.
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man1,/etc/rc.d/init.d}
+install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man1,%{systemdunitdir}} \
+       $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
 
 install %{name} $RPM_BUILD_ROOT%{_sbindir}
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
+install %{SOURCE3} $RPM_BUILD_ROOT%{systemdunitdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -55,14 +60,21 @@ rm -rf $RPM_BUILD_ROOT
 %post
 /sbin/chkconfig --add irqbalance
 %service irqbalance restart "irqbalance daemon"
+%systemd_post irqbalance.service
 
 %preun
 if [ "$1" = "0" ]; then
        %service irqbalance stop
        /sbin/chkconfig --del irqbalance
 fi
+%systemd_preun irqbalance.service
+
+%postun
+%systemd_reload
 
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_sbindir}/*
 %attr(754,root,root) /etc/rc.d/init.d/irqbalance
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
+%{systemdunitdir}/irqbalance.service
diff --git a/irqbalance.sysconfig b/irqbalance.sysconfig
new file mode 100644 (file)
index 0000000..3f50001
--- /dev/null
@@ -0,0 +1,5 @@
+# Customized settings for irqbalance
+
+### Additional options for irqbalance daemon
+#IRQBALANCE_OPT="oneshot"
+#IRQBALANCE_OPT="debug"
This page took 0.879856 seconds and 4 git commands to generate.