I use ices0 + icecast to stream my music to me all over the globe. I created a python script to build generate the playlist of songs that are played.
Create a folder
/var/ices and put in it a file called
cur-pl should contain:
[location of playlist file] [play-type]
[location of playlist file] is the play text file with a list of music files.
[play-type] is either
File resource missing