bannersworld
04-02-2004, 06:54 PM
Hi,
what is the command to restart ShoutCast server?. Please let me know.
Thanks
John.K
what is the command to restart ShoutCast server?. Please let me know.
Thanks
John.K
![]() | View Full Version : Restarting ShoutCast Server bannersworld 04-02-2004, 06:54 PM Hi, what is the command to restart ShoutCast server?. Please let me know. Thanks John.K bannersworld 04-02-2004, 08:29 PM Hi, I have tried. ./sc_serv* sc_serv.conf and got following error. ******************************************************************************* ** SHOUTcast Distributed Network Audio Server ** Copyright (C) 1998-2004 Nullsoft, Inc. All Rights Reserved. ** Use "sc_serv filename.ini" to specify an ini file. ******************************************************************************* Event log: <04/02/04@19:27:39> [SHOUTcast] DNAS/Linux v1.9.4 (Mar 17 2004) starting up... <04/02/04@19:27:39> [main] pid: 1352 <04/02/04@19:27:39> [main] loaded config from ./sc_serv.conf <04/02/04@19:27:39> [main] initializing (usermax:60 portbase:8000)... <04/02/04@19:27:39> [main] No ban file found (sc_serv.ban) <04/02/04@19:27:39> [main] No rip file found (sc_serv.rip) <04/02/04@19:27:39> [main] opening source socket <04/02/04@19:27:39> [main] error opening source socket! FATAL ERROR! Some other process is using this port! How can we fix this?. Thank You null 04-02-2004, 08:47 PM Originally posted by bannersworld Hi, I have tried. ./sc_serv* sc_serv.conf and got following error. ******************************************************************************* ** SHOUTcast Distributed Network Audio Server ** Copyright (C) 1998-2004 Nullsoft, Inc. All Rights Reserved. ** Use "sc_serv filename.ini" to specify an ini file. ******************************************************************************* Event log: <04/02/04@19:27:39> [SHOUTcast] DNAS/Linux v1.9.4 (Mar 17 2004) starting up... <04/02/04@19:27:39> [main] pid: 1352 <04/02/04@19:27:39> [main] loaded config from ./sc_serv.conf <04/02/04@19:27:39> [main] initializing (usermax:60 portbase:8000)... <04/02/04@19:27:39> [main] No ban file found (sc_serv.ban) <04/02/04@19:27:39> [main] No rip file found (sc_serv.rip) <04/02/04@19:27:39> [main] opening source socket <04/02/04@19:27:39> [main] error opening source socket! FATAL ERROR! Some other process is using this port! How can we fix this?. Thank You Read before posting <04/02/04@19:27:39> [main] error opening source socket! FATAL ERROR! Some other process is using this port! null 04-02-2004, 08:49 PM Originally posted by bannersworld Hi, what is the command to restart ShoutCast server?. Please let me know. Thanks John.K killall sc_serv and then start again nop ninjah 04-02-2004, 08:51 PM That error means an application has already binded to that specific port, probably another instance of Shoutcast. To check if the port 8000 actually is in use, you can use the netstat command, like this: ninjah@snow:shoutcast-1-9-2-linux-glibc6$ netstat -ant | grep 8000 tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN ninjah@snow:shoutcast-1-9-2-linux-glibc6$ As you can see, something is using the port 8000. Lets check and see if another Shoutcast process is already running. ninjah@snow:shoutcast-1-9-2-linux-glibc6$ ps aux | grep sc_serv ninjah 13368 0.0 0.3 31464 1696 pts/1 S 16:39 0:00 ./sc_serv ninjah@snow:shoutcast-1-9-2-linux-glibc6$ Looks like there is, and for us to be able to bind to port 8000, we need to kill this rouge Shoutcast server. To do that, we take the PID listed in the ps aux command (13368) and use the kill command to kill it. ninjah@snow:shoutcast-1-9-2-linux-glibc6$ kill -9 13368 ninjah@snow:shoutcast-1-9-2-linux-glibc6$ ps aux | grep sc_serv ninjah@snow:shoutcast-1-9-2-linux-glibc6$ netstat -ant | grep 8000 ninjah@snow:shoutcast-1-9-2-linux-glibc6$ Looks like everything is ok, and you should be able to start a new Shoutcast server. nop ninjah 04-02-2004, 08:53 PM Oops, looks like null beat me to it as I was writing the post. |