25 October 2014

Test Scribd

Mongodb + Php by Haddad Sammir

24 October 2014

Test gist.

#!/bin/sh
#
# chkconfig: 345 99 01
#
# description: shoutcast server startup script
#
# Init script for SHOUTcast
# by caraoge, modified to work correctly by Thomas R Bailey, modified further for
# use with three servers by Nathan Skelton
#
# Last edited Jan 13 2009
# Set config to config file location
# set daemon to sc_serv location
############################################################################
## CHANGE THESE VALUES to match your setup
## CONFIG is the fully qualified location of your config file
## DAEMON is the fully qualified location of the sc_serv binary
## Note, the script will look for sc_serv and sc_serv.conf in /home/shoutcast
############################################################################
DAEMON="/home/shoutcast/sc_serv"
CONFIG="/home/shoutcast/sc_serv.conf"
#CONFIG2="/home/shoutcast/sc_serv2.conf"
#CONFIG3="/home/shoutcast/sc_serv3.conf"
############# Don't fiddle below this line ##############
# Check for SHOUTcast binary
test -f $DAEMON || exit 0
# The init commands
case "$1" in
start)
echo "Starting SHOUTcast server..."
$DAEMON $CONFIG > /dev/null 2>&1 &
#$DAEMON $CONFIG2 > /dev/null 2>&1 &
#$DAEMON $CONFIG3 > /dev/null 2>&1 &
;;
stop)
echo "Stopping SHOUTcast server..."
kill -9 `ps -C sc_serv -o pid --no-headers`
;;
restart)
echo "Stopping SHOUTcast server..."
kill -9 `ps -C sc_serv -o pid --no-headers`
echo "Starting SHOUTcast server..."
$DAEMON $CONFIG > /dev/null 2>&1 &
#$DAEMON $CONFIG2 > /dev/null 2>&1 &
#$DAEMON $CONFIG3 > /dev/null 2>&1 &
;;
*)
echo "usage: /etc/init.d/shoutcast"
echo "$0 {start | stop | restart}"
exit 1
;;
esac
view raw shoutcast.sh hosted with ❤ by GitHub

23 October 2014