I figured it out!!!! Now I just need someone to tell me if this is the right way to do it, or a total hack. I took markhood's script, with a slight modification, and added:
LANG=en_US.UTF-8
export LANG
So now, the whole script looks like this, and I can either call it from rc.local or put it in /etc/rc.d and add it to the DAEMONS line in rc.conf:
#!/bin/sh
# Start the MyMedia server for the Roku Digital Video Player
LANG=en_US.UTF-8
export LANG
# Kill the server. This is a python program so killall doesn't work.
# awk also doesn't seem to work with Unslung, so use sed.
prog=`ps ax | grep rss_server | grep -v grep | tail -1 | sed -e 's/ *\([0-9]*\) .*/\1/'`
if [ -n "$prog" ]; then
kill $prog
fi
sleep 2
cd /home/roku/server
nohup python rss_server.py > /dev/null 2>&1 < /dev/null &
Putting the server stuff in /home/roku probably isn't the best place, but I don't really know all the Linux customary directories for everything. Where should it go, somewhere under /opt?
Gunslinger2, let me know if it works for you.
-JT
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.