How can I restart the server ?

Steamcast is a stand alone server that combines the features of SHOUTcast and Icecast2 and more to make one mega awesome server.
Post Reply
millenium
Posts: 1
Joined: Sat Aug 15, 2009 4:43 am

How can I restart the server ?

Post by millenium »

I look for restarting the server after modifying the configuration.
Waht is the command which do that ?
board
Posts: 11
Joined: Thu Jan 18, 2007 12:05 pm

Re: How can I restart the server ?

Post by board »

Maybe this can help you.

Good luck!

Code: Select all

#!/bin/sh
# Script to control Steamcast with start and stop
#
# Script, version 1.0.0, tested on Fedora 10, 2009-08-18
# Written by alias Board - Woozy Radio http://www.woozyradio.com
# (visit forums.radiotoolbox.com for this script)
#
# HowTo: create a file steamcast.sh in /etc/init.d
# Change file rights: chmod 755 steamcast.sh

# Adjust the path to the steamcast executable
STEAMCAST=/steamcast

case "$1" in
  start)
                $STEAMCAST/steamcast > /dev/null &
  ;;
  stop)
         echo -n "Shutting down steamcast: "
         kill $(pgrep steamcast)
         RETVAL=$?
         echo
         [ $RETVAL = 0 ] && rm -f $STEAMCAST/steamcast.pid
  ;;
  *)
    echo "Usage: `basename $0` {start|stop}" >&2
  ;;
esac
exit 0
Post Reply