Shoutcast Automatic Start Script for CentOS

I found this script and modified it a bit so it starts all three of my Shoutcast servers automatically when/if the server ever restarts. That part works great. However, there’s something I would like to change…I want to be able to manage each server individually. I’m not really sure what to do to accomplish this. At this point it’s not too big of a deal, so I’m not going to worry about it.

I want to be able to do “service shoutcast restart” and somehow be able to choose which one to restart (or restart all of them if no specific server is specified). Restarting them all isn’t acceptable when I’m only making configuration changes to one (kicking all users=bad). There is the method of hunting down the process id and killing it and then typing in the command to start it again, but that’s getting old rather fast.

I’d appreciate any suggestions.
Continue reading