<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rivendellaudio.wiki/index.php?action=history&amp;feed=atom&amp;title=Auto-Recovery_After_a_Power_Failure</id>
	<title>Auto-Recovery After a Power Failure - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rivendellaudio.wiki/index.php?action=history&amp;feed=atom&amp;title=Auto-Recovery_After_a_Power_Failure"/>
	<link rel="alternate" type="text/html" href="https://rivendellaudio.wiki/index.php?title=Auto-Recovery_After_a_Power_Failure&amp;action=history"/>
	<updated>2026-04-23T14:26:47Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://rivendellaudio.wiki/index.php?title=Auto-Recovery_After_a_Power_Failure&amp;diff=28743&amp;oldid=prev</id>
		<title>imported&gt;WaybackImport: Imported from Wayback via edit</title>
		<link rel="alternate" type="text/html" href="https://rivendellaudio.wiki/index.php?title=Auto-Recovery_After_a_Power_Failure&amp;diff=28743&amp;oldid=prev"/>
		<updated>2022-01-18T13:42:39Z</updated>

		<summary type="html">&lt;p&gt;Imported from Wayback via edit&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Configuring the server==&lt;br /&gt;
&lt;br /&gt;
Your server should be protected against power outages, but not everyone has the luxury of a generator backup.  At the least a good UPS should provide for a clean shutdown.  When power is restored, the following will automatically start RDAirplay and load the appropriate log:&lt;br /&gt;
 &lt;br /&gt;
#Set the BIOS to automatically power the computer on after a power failure.&lt;br /&gt;
#Set up the Linux workstation to automatically log in all the way straight to the desktop (i.e. don&amp;#039;t require or else automatically provide the user credentials so that there is no logon prompt when the computer is powered up).  This could be considered a security risk in some environments: a password protected screen saver may help mitigate the exposure.&lt;br /&gt;
#Place a shortcut that calls RDAirplay in the startup folder in KDE (or whichever desktop manager is used).&lt;br /&gt;
#In the shortcut (script, etc.), use the appropriate command-line switches for &amp;#039;rdairplay&amp;#039; to load a log automatically.  The usual variables (month, day, year, etc.) work as in Rivendell, since RD uses the standard variables used in the &amp;#039;date&amp;#039; program in Linux. (See below.)&lt;br /&gt;
&lt;br /&gt;
It may be that RDAirplay can not be made to start up in the middle of a long-form cart that should be playing.  If the log consists primarily of carts that are all designed to have a non-hard-timed PLAY or SEGUE transition, you might have a problem getting the log to start back up, so you might consider putting in at least one hard-timed event per hour if the log allows it.&lt;br /&gt;
&lt;br /&gt;
==Example of the shortcut placed in the autostart directory==&lt;br /&gt;
&lt;br /&gt;
For reference, here&amp;#039;s a shortcut that should be put into the &amp;lt;homedir&amp;gt;/.kde/Autostart/ directory on a Rivendell system that is designed to autostart RDAirplay after a power failure.  &lt;br /&gt;
It will display as an icon in a graphical environment, but this is what will display when you cat the file itself from the command line.  (The shortcut is actually just a text file containing appropriate entries.)&lt;br /&gt;
&lt;br /&gt;
Note particularly the &amp;quot;Exec&amp;quot; line below.  The Rivendell log name is called &amp;quot;fri&amp;quot; and what the &amp;quot;|sed ...&amp;quot; stuff does is change all the upper-case characters to lower-case.  (Of course, one could simply rename the logs, but that would be too easy.)  Adapt the line to match your naming convention as necessary.&lt;br /&gt;
&lt;br /&gt;
Also note the &amp;quot;Icon&amp;quot; entry:  It will have to point to the location of your icons and RDUSER changed to the name of the user you run Rivendell as.&lt;br /&gt;
&lt;br /&gt;
&amp;gt; cat ~/.kde/Autostart/rdairplay.desktop&lt;br /&gt;
&lt;br /&gt;
 [Desktop Entry]&lt;br /&gt;
 BinaryPattern=&lt;br /&gt;
 Categories=Qt&lt;br /&gt;
 Comment=&lt;br /&gt;
 Comment[en_US]=&lt;br /&gt;
 Encoding=UTF-8&lt;br /&gt;
 Exec=rdairplay  --log1=`date +%a|sed y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/`:+&lt;br /&gt;
 GenericName=Rivendell On-Air Playout&lt;br /&gt;
 GenericName[en_US]=Rivendell On-Air Playout&lt;br /&gt;
 Icon=/home/RDUSER/cvs/rivendell/icons/rivendell-32x32.xpm&lt;br /&gt;
 MimeType=&lt;br /&gt;
 Name=RDAirPlay&lt;br /&gt;
 Path=&lt;br /&gt;
 StartupNotify=true&lt;br /&gt;
 Terminal=false&lt;br /&gt;
 TerminalOptions=&lt;br /&gt;
 Type=Application&lt;br /&gt;
 X-DCOP-ServiceType=&lt;br /&gt;
 X-KDE-SubstituteUID=false&lt;br /&gt;
 X-KDE-Username=&lt;br /&gt;
&lt;br /&gt;
-------------&lt;br /&gt;
(Many thanks to Sherrod Munday for the above procedure.)&lt;br /&gt;
&lt;/div&gt;</summary>
		<author><name>imported&gt;WaybackImport</name></author>
	</entry>
</feed>