How to get Rivendell to start with Real Time Priorites on boot up

Filed under: Rivendell,Rivendell Development — frederickjh @ 13:37  

You may have noticed on your Ubuntu install (using debian.tryphon.org packages, this includes RRAbuntu Live CD Installs) of Rivendell that real time priorities do not get enable when it starts on boot up but if you restart after booting it does.

This assumes you have setup (or it was setup for you) like in this Rivendell wiki page on real time limits.

If you check your messages log. System>Administration>Log File Viewer>messages

You will find lines that either say Rivendell started with real time priorities or not.

Sep 23 16:12:47 rrabuntu caed: using realtime scheduling, priority=8

Sep 22 16:19:16 rrabuntu caed: Unable to set realtime scheduling: Operation not permitted

Obviously the second line is not what you want to see. It appears that the the problem is the start-stop-daemon that is being used in the sysv init script. Replacing the line from /etc/init.d/rivendell

start-stop-daemon –start –oknodo –chuid $DAEMON_USER –exec “/usr/bin/$daemon”

with a simple su command to change the user, like so:

su $DAEMON_USER -c “/usr/bin/$daemon”

allows the Rivendell daemons to start with real time priorities on boot.

Happy real time priority booting of Rivendell!

PS Any feedback on whether this still allows jackd to work with Rivendell would be appreciated.

No Comments

Sorry, the comment form is closed at this time.