View Full Version : auto dj not working. how it restart
EttaFiX
3rd January 2007, 19:26
hi. my frend install SHOUTcast, upload music in to the serwer. and turn on auto dj. leve the city.... I delete music ant upload new music, wrote all songs in the list file. but auto dj not working? I dont know how it restart? please help me?
Moved from Winamp Discussion to SHOUTcast Discussion | Please post SHOUTcaster questions/topics in the SHOUTcast forums
NJK
3rd January 2007, 21:11
since we got not much info to go on
you won't get many answers
what auto dj are you talking about
how is your setup??
you need to give us at least some info so we might give you answers that will work for you.
AlexIT
3rd January 2007, 22:22
I think it`s sc_trans.
EttaFiX, try kill -s USR1 [PID] on shell(if you have acess to it).
P.S. Don`t forget to enter the PID of sc_trans process.
fc*uk
3rd January 2007, 22:26
Not that I think about it, I would have to agree that this must be sc_trans.
The above solution is correct.
I would like to add that sc_trans only loads the playlist file when the program is launched. After that it never looks at the file again. Therefore, if you change something in the playlist file the only way you can get sc_trans to pickup on that is by killing it and restarting it.
Make sure you kill ALL instances of sc_trans as it spawns many...
EttaFiX
3rd January 2007, 23:00
Originally posted by AlexIT
I think it`s sc_trans.
EttaFiX, try kill -s USR1 [PID] on shell(if you have acess to it).
P.S. Don`t forget to enter the PID of sc_trans process.
yes AlexIT I have acess.
maby you can tell to my step by step how I should "
kill -s USR1 [PID] on shell"
EttaFiX
3rd January 2007, 23:10
in which plase I'll should write this comand? "USR1" and what ever my step?
AlexIT
3rd January 2007, 23:27
Open your favourite shell "device"(I have php script), type: ps auxww
Now you will see the list of started processes, look for sc_trans and find the PID of it.
For ex.:
USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND
sanfmru 906 10,1 0,1 4952 3852 ?? SJ 2:52 3:15,66 /home/xxx/xxx/xxx/sc_trans_freebsd /home/xxx/xxx/xxx/sc_trans.conf
The PID is 906 in this case, than type: kill -s USR1 906 and the playlist will be reloaded.
You can chek it in sc_trans.log
Let me know the results.. :)
Sawg
3rd January 2007, 23:32
Why "look"? Looking is for losers :)
ps auxww | grep sc_trans
AlexIT
3rd January 2007, 23:35
Sorry, so I`m loser in shell)
AlexIT
3rd January 2007, 23:42
Shell is for losers :) He..he.
Cause I`m using a bunch of scripts in my wery nice hand-maded admin-panel: http://img383.imageshack.us/img383/7073/shellfa6.jpg
EttaFiX
4th January 2007, 20:21
yes it's working. wery thx! :D
BELLonline
6th January 2007, 17:25
There is some nice info here
http://ruckman.net/ruckman_archive/William%20Ruckman's%20EZ%20Linux%20Shoutcast%20server.htm
If you scroll down a bit, there is a script that you can use to control your sc_trans by using the following commands:
./dj start
./dj stop
Simple but effective, I use it myself and it also has other features such as reloading playlists.
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.