On Thu, 6 Aug 2015, Ralf Mardorf wrote:

below that how a systemd solution could look like [1].

[root@archlinux ~]# cat /usr/lib/systemd/system/rtirq.service
[Unit]
Description=Realtime IRQ thread system tuning
After=multi-user.target sound.target

[Service]
Type=oneshot
ExecStart=/usr/bin/rtirq start
ExecStop=/usr/bin/rtirq stop
RemainAfterExit=true

This is where sysinit/upstart/systemd kind of fail me. Stuff like this is really not a system service, but rather system configuration.

In the above, what is there to stop? The script sets the system up and exits. (I am guessing that is what oneshot means) So what is the remain after exit thing in this case? That doesn't make sense as there is (or should be) no remaining running process.


--
Len Ovens
www.ovenwerks.net


--
ubuntu-studio-devel mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-studio-devel

Reply via email to