[PlanetCCRMA] rtirq as systemd service?

Fernando Lopez-Lezcano nando at ccrma.Stanford.EDU
Sat Mar 30 18:07:45 PDT 2013


On 03/30/2013 11:50 AM, Simon Lewis wrote:
> Hello Fernando
>
> Since fc17 upwards uses systemd and not sysvinit, should rtirq be made a
> systemd service?

It should... and it is great that you wrote a systemd unit! Thanks! But 
rtirq is now in Fedora, maybe you could file a bug in bugzilla and 
include the changed spec file there?

-- Fernando


> Something like:
>
> ____________________
>
> Name: systemd-rtirq
> Version: 20121105
>
> Source0: http://www.rncbc.org/jack/rtirq-20121105.tar.gz
>
> Requires: /bin/sh
> Requires: /usr/bin/chrt
>
> Conflicts: rtirq
>
> %prep
> %setup -q -n rtirq-20121105
>
> %build
> # nothing to do here
>
> %install
> cat>  rtirq.service<<  EOF
> [Unit]
> Description=Realtime IRQ thread system tuning
>
> [Service]
> Type=oneshot
> ExecStart=/etc/rc.d/init.d/rtirq start
> ExecStop=/etc/rc.d/init.d/rtirq stop
> RemainAfterExit=true
>
> [Install]
> WantedBy=multi-user.target
> EOF
>
> install -vDm644 rtirq.conf %{buildroot}%{_sysconfdir}/sysconfig/rtirq
> install -vDm755 rtirq.sh %{buildroot}%{_sysconfdir}/rc.d/init.d/rtirq
> install -vDm644 rtirq.service
> %{buildroot}%{_prefix}/lib/systemd/system/rtirq.service
>
> %post
> systemctl enable rtirq.service
>
> %preun
> systemctl disable rtirq.service
>
> %files
> %defattr(-,root,root,-)
> %config(noreplace) %{_sysconfdir}/sysconfig/rtirq
> %config(noreplace) %{_sysconfdir}/rc.d/init.d/rtirq
> %{_prefix}/lib/systemd/system/rtirq.service
> ______________________________
>
> With best regards, Simon Lewis



More information about the PlanetCCRMA mailing list